blob: a63a38da37405b52db1e667114f6c710dc66948a [file] [log] [blame]
Colin Cross35be4242018-11-20 09:46:47 -08001//########################################################################
2// Build FrameworksUiServicesTests package
3//########################################################################
4
Bob Badour8a6a2bc2021-02-12 17:07:05 -08005package {
6 // See: http://go/android-license-faq
7 // A large-scale-change added 'default_applicable_licenses' to import
8 // all of the 'license_kinds' from "frameworks_base_license"
9 // to get the below license kinds:
10 // SPDX-license-identifier-Apache-2.0
11 default_applicable_licenses: ["frameworks_base_license"],
12}
13
Colin Cross35be4242018-11-20 09:46:47 -080014android_test {
15 name: "FrameworksUiServicesTests",
16
17 // Include test java files
18 srcs: [
19 "src/**/*.java",
20 ],
21
22 static_libs: [
Lucas Silva1e16b3c2022-08-29 15:45:28 -040023 "frameworks-base-testutils",
Colin Cross35be4242018-11-20 09:46:47 -080024 "services.accessibility",
25 "services.core",
26 "services.devicepolicy",
27 "services.net",
28 "services.usage",
Manjeet Rulhania0bc6a602023-03-10 16:49:38 +000029 "service-permission.stubs.system_server",
Colin Cross35be4242018-11-20 09:46:47 -080030 "guava",
Filipf58f1232022-06-12 17:38:55 +000031 "androidx.test.rules",
32 "hamcrest-library",
Colin Cross35be4242018-11-20 09:46:47 -080033 "mockito-target-inline-minus-junit4",
Michael Mikhail55dce0d2023-07-26 16:44:09 +000034 "platform-compat-test-rules",
Colin Cross35be4242018-11-20 09:46:47 -080035 "platform-test-annotations",
Chris Wrenbc487b52019-11-22 16:58:17 -050036 "platformprotosnano",
Chris Wren1a934a32020-05-19 13:45:46 -040037 "statsdprotolite",
Yuri Lin0a052cd2023-08-23 12:22:20 -040038 "StatsdTestUtils",
Dan Sandler7647f1d2018-11-26 09:56:26 -050039 "hamcrest-library",
Lucas Silva1e16b3c2022-08-29 15:45:28 -040040 "servicestests-utils",
Colin Cross35be4242018-11-20 09:46:47 -080041 "testables",
Krzysztof Kosiński60b70872023-10-06 20:11:39 +000042 "truth",
Matías Hernándezc1ab1682023-12-07 14:56:51 +010043 "TestParameterInjector",
Kurt Dresner3d21c802020-09-29 15:32:11 -070044 // TODO: remove once Android migrates to JUnit 4.12,
45 // which provides assertThrows
46 "testng",
Valentin Iftimeb551eb62023-07-19 11:34:31 +020047 "flag-junit",
48 "notification_flags_lib",
Matías Hernández21578862023-12-13 15:53:08 +010049 "platform-test-rules",
Marcelo Arteiro3df98342023-11-27 14:45:37 +000050 "SettingsLib",
Matías Hernándezf8c99272024-03-04 16:47:44 +010051 "libprotobuf-java-lite",
52 "platformprotoslite",
Julia Reynolds7983f2b2024-04-02 15:58:15 -040053 "platform-parametric-runner-lib",
Colin Cross35be4242018-11-20 09:46:47 -080054 ],
55
56 libs: [
Jihoon Kang1e37ed32024-08-30 00:29:12 +000057 "android.test.runner.stubs.system",
58 "android.test.base.stubs.system",
59 "android.test.mock.stubs.system",
Colin Cross35be4242018-11-20 09:46:47 -080060 ],
61
62 dxflags: ["--multi-dex"],
63
64 platform_apis: true,
Filipf58f1232022-06-12 17:38:55 +000065
66 test_suites: [
67 "device-tests",
68 "automotive-tests",
69 ],
Colin Cross35be4242018-11-20 09:46:47 -080070
71 certificate: "platform",
72
73 compile_multilib: "both",
74
75 // These are not normally accessible from apps so they must be explicitly included.
76 jni_libs: [
77 "libdexmakerjvmtiagent",
78 "libmultiplejvmtiagentsinterferenceagent",
Colin Cross35be4242018-11-20 09:46:47 -080079 "libbase",
80 "libbinder",
Colin Cross35be4242018-11-20 09:46:47 -080081 "libc++",
82 "libcutils",
83 "liblog",
84 "liblzma",
85 "libnativehelper",
Colin Cross35be4242018-11-20 09:46:47 -080086 "libui",
87 "libunwindstack",
88 "libutils",
Jeongik Cha969b9212021-01-28 00:49:47 +090089 "netd_aidl_interface-V5-cpp",
Colin Cross35be4242018-11-20 09:46:47 -080090 ],
Matías Hernándezc1ab1682023-12-07 14:56:51 +010091
92 // Required for TestParameterInjector
93 javacflags: ["-parameters"],
Colin Cross35be4242018-11-20 09:46:47 -080094}
Ronald Braunstein809a2eb2024-09-11 04:18:32 +000095
96test_module_config {
97 name: "FrameworksUiServicesTests_notification",
98 base: "FrameworksUiServicesTests",
99 test_suites: [
100 "automotive-tests",
101 "device-tests",
102 ],
103 exclude_annotations: ["androidx.test.filters.LargeTest"],
104}