diff options
author | Christopher Wiley <wiley@google.com> | 2015-09-01 18:11:41 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-09-01 18:11:41 +0000 |
commit | 267cb88f4d4adb2cdddd9b29eb8fce7104507114 (patch) | |
tree | 16b1812eb5c085bcc45d7df373c43e79aed60a8f /tools/aidl | |
parent | 9d586927102b597845607ccc82661e350821de82 (diff) | |
parent | 8a8775c1db7012500ea94405e481f07f1ee7e645 (diff) |
Merge "Set up aidl for gtest"
Diffstat (limited to 'tools/aidl')
-rw-r--r-- | tools/aidl/Android.mk | 9 | ||||
-rw-r--r-- | tools/aidl/tests/test.cpp | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tools/aidl/Android.mk b/tools/aidl/Android.mk index 6866c6c9a55a..f18b08281139 100644 --- a/tools/aidl/Android.mk +++ b/tools/aidl/Android.mk @@ -38,4 +38,13 @@ LOCAL_MODULE_HOST_OS := darwin linux windows include $(BUILD_HOST_EXECUTABLE) +# Unit tests +include $(CLEAR_VARS) +LOCAL_MODULE := aidl_unittests +LOCAL_CFLAGS := -g -DUNIT_TEST +LOCAL_SRC_FILES := tests/test.cpp +LOCAL_STATIC_LIBRARIES := libgmock_host libgtest_host libBionicGtestMain +LOCAL_LDLIBS := -lrt +include $(BUILD_HOST_NATIVE_TEST) + endif # No TARGET_BUILD_APPS or TARGET_BUILD_PDK diff --git a/tools/aidl/tests/test.cpp b/tools/aidl/tests/test.cpp new file mode 100644 index 000000000000..15ae294138a8 --- /dev/null +++ b/tools/aidl/tests/test.cpp @@ -0,0 +1,3 @@ +#include <gtest/gtest.h> + +TEST(DummyCase, DummyTest) {} |