1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "frameworks_base_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_base_license"],
8}
9
10android_ravenwood_test {
11    name: "RavenwoodMockitoTest",
12
13    srcs: [
14        "test/**/*.java",
15    ],
16    exclude_srcs: [
17        "test/**/*DeviceOnly*.java",
18    ],
19    static_libs: [
20        "junit",
21        "truth",
22    ],
23    libs: [
24        "android.test.mock",
25        "android.test.base",
26        "android.test.runner",
27    ],
28    auto_gen_config: true,
29}
30
31android_test {
32    name: "RavenwoodMockitoTest_device",
33
34    srcs: [
35        "test/**/*.java",
36    ],
37    exclude_srcs: [
38        "test/**/*RavenwoodOnly*.java",
39    ],
40    static_libs: [
41        "junit",
42        "truth",
43
44        "androidx.test.rules",
45
46        "ravenwood-junit",
47
48        "mockito-target-extended-minus-junit4",
49    ],
50    libs: [
51        "android.test.mock",
52        "android.test.base",
53        "android.test.runner",
54    ],
55    jni_libs: [
56        // Required by mockito
57        "libdexmakerjvmtiagent",
58        "libstaticjvmtiagent",
59    ],
60    test_suites: [
61        "device-tests",
62    ],
63    optimize: {
64        enabled: false,
65    },
66}
67