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

* commit 'f3d846d0bd221d24c42af30711c2927e6cc398b8':
  Set up aidl for gtest
This commit is contained in:
Christopher Wiley
2015-09-01 18:40:48 +00:00
committed by Android Git Automerger
2 changed files with 12 additions and 0 deletions

View File

@@ -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

View File

@@ -0,0 +1,3 @@
#include <gtest/gtest.h>
TEST(DummyCase, DummyTest) {}