1//########################################################################
2// Build WmTests package
3//########################################################################
4
5android_test {
6    name: "WmTests",
7
8    // We only want this apk build for tests.
9
10    // Include all test java files.
11    srcs: [
12        "src/**/*.java",
13    ],
14
15    static_libs: [
16        "frameworks-base-testutils",
17        "services.core",
18        "androidx.test.runner",
19        "androidx.test.rules",
20        "mockito-target-extended-minus-junit4",
21        "platform-test-annotations",
22        "servicestests-utils",
23        "testng",
24        "truth-prebuilt",
25        "testables",
26        "ub-uiautomator",
27        "hamcrest-library",
28        "compatibility-device-util-axt",
29    ],
30
31    libs: [
32        "android.test.mock",
33        "android.test.base",
34        "android.test.runner",
35    ],
36
37    // These are not normally accessible from apps so they must be explicitly included.
38    jni_libs: [
39        "libdexmakerjvmtiagent",
40        "libstaticjvmtiagent",
41    ],
42
43    platform_apis: true,
44    test_suites: ["device-tests"],
45
46    certificate: "platform",
47
48    dxflags: ["--multi-dex"],
49
50    optimize: {
51        enabled: false,
52    },
53
54}
55