summaryrefslogtreecommitdiff
path: root/services/tests/uiservicestests/Android.bp
blob: 2128a08d53d20c10f7b4668b36086b3eba4e5261 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//########################################################################
// Build FrameworksUiServicesTests package
//########################################################################

package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_base_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["frameworks_base_license"],
}

android_test {
    name: "FrameworksUiServicesTests",

    // Include test java files
    srcs: [
        "src/**/*.java",
    ],

    static_libs: [
        "services.accessibility",
        "services.core",
        "services.devicepolicy",
        "services.net",
        "services.usage",
        "guava",
        "androidx.test.rules", "hamcrest-library",
        "mockito-target-inline-minus-junit4",
        "platform-test-annotations",
        "platformprotosnano",
        "statsdprotolite",
        "hamcrest-library",
        "testables",
        "truth-prebuilt",
        // TODO: remove once Android migrates to JUnit 4.12,
        // which provides assertThrows
        "testng",
    ],

    libs: [
        "android.test.runner",
        "android.test.base",
        "android.test.mock",
    ],

    dxflags: ["--multi-dex"],

    platform_apis: true,
    test_suites: ["device-tests"],

    certificate: "platform",

    compile_multilib: "both",

    // These are not normally accessible from apps so they must be explicitly included.
    jni_libs: [
        "libdexmakerjvmtiagent",
        "libmultiplejvmtiagentsinterferenceagent",
        "libbase",
        "libbinder",
        "libc++",
        "libcutils",
        "liblog",
        "liblzma",
        "libnativehelper",
        "libui",
        "libunwindstack",
        "libutils",
        "netd_aidl_interface-V5-cpp",
    ],
}