am cf471647: am 267cb88f: Merge "Set up aidl for gtest"

* commit 'cf4716473d5af3cd257b7e093c95c9b63b3b32c9':
  Set up aidl for gtest
diff --git a/tools/aidl/Android.mk b/tools/aidl/Android.mk
index 6866c6c..f18b082 100644
--- a/tools/aidl/Android.mk
+++ b/tools/aidl/Android.mk
@@ -38,4 +38,13 @@
 
 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 0000000..15ae294
--- /dev/null
+++ b/tools/aidl/tests/test.cpp
@@ -0,0 +1,3 @@
+#include <gtest/gtest.h>
+
+TEST(DummyCase, DummyTest) {}