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