• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_test {
11    name: "DisplayServiceTests",
12
13    srcs: [
14        "src/**/*.java",
15        "src/**/*.kt",
16    ],
17
18    libs: [
19        "android.test.mock.stubs.system",
20    ],
21
22    static_libs: [
23        "androidx.test.ext.junit",
24        "androidx.test.rules",
25        "compatibility-device-util-axt",
26        "flag-junit",
27        "frameworks-base-testutils",
28        "junit",
29        "junit-params",
30        "kotlin-test",
31        "mockito-kotlin2",
32        "mockingservicestests-utils-mockito",
33        "platform-compat-test-rules",
34        "platform-test-annotations",
35        "service-permission.stubs.system_server",
36        "services.core",
37        "servicestests-utils",
38        "testables",
39        "TestParameterInjector",
40    ],
41
42    defaults: [
43        "modules-utils-testable-device-config-defaults",
44    ],
45
46    platform_apis: true,
47    test_suites: [
48        "device-tests",
49        "automotive-tests",
50    ],
51
52    data: [
53        ":DisplayManagerTestApp",
54        ":TopologyTestApp",
55    ],
56
57    certificate: "platform",
58
59    dxflags: ["--multi-dex"],
60
61    optimize: {
62        enabled: false,
63    },
64}
65
66test_module_config {
67    name: "DisplayServiceTests_server_display",
68    base: "DisplayServiceTests",
69    test_suites: [
70        "automotive-tests",
71        "device-tests",
72    ],
73    include_filters: ["com.android.server.display"],
74}
75