1############################################################# 2# Bluetooth Robolectric test target. # 3############################################################# 4LOCAL_PATH := $(call my-dir) 5include $(CLEAR_VARS) 6 7LOCAL_MODULE := BluetoothRoboTests 8 9LOCAL_SRC_FILES := $(call all-java-files-under, src) 10 11LOCAL_RESOURCE_DIR := \ 12 $(LOCAL_PATH)/res 13 14LOCAL_JAVA_RESOURCE_DIRS := config 15 16# Include the testing libraries 17LOCAL_JAVA_LIBRARIES := \ 18 robolectric_android-all-stub \ 19 Robolectric_all-target \ 20 mockito-robolectric-prebuilt \ 21 truth-prebuilt 22 23LOCAL_INSTRUMENTATION_FOR := Bluetooth 24 25LOCAL_MODULE_TAGS := optional 26 27include $(BUILD_STATIC_JAVA_LIBRARY) 28 29############################################################# 30# Bluetooth runner target to run the previous target. # 31############################################################# 32include $(CLEAR_VARS) 33 34LOCAL_MODULE := RunBluetoothRoboTests 35 36LOCAL_JAVA_LIBRARIES := \ 37 BluetoothRoboTests \ 38 robolectric_android-all-stub \ 39 Robolectric_all-target \ 40 mockito-robolectric-prebuilt \ 41 truth-prebuilt 42 43LOCAL_TEST_PACKAGE := Bluetooth 44 45LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src 46 47include external/robolectric-shadows/run_robotests.mk 48