blob: 2128a08d53d20c10f7b4668b36086b3eba4e5261 [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: [
23 "services.accessibility",
24 "services.core",
25 "services.devicepolicy",
26 "services.net",
27 "services.usage",
28 "guava",
Brett Chabot84151d92019-02-27 15:37:59 -080029 "androidx.test.rules", "hamcrest-library",
Colin Cross35be4242018-11-20 09:46:47 -080030 "mockito-target-inline-minus-junit4",
31 "platform-test-annotations",
Chris Wrenbc487b52019-11-22 16:58:17 -050032 "platformprotosnano",
Chris Wren1a934a32020-05-19 13:45:46 -040033 "statsdprotolite",
Dan Sandler7647f1d2018-11-26 09:56:26 -050034 "hamcrest-library",
Colin Cross35be4242018-11-20 09:46:47 -080035 "testables",
Tony Mak9a3c1f12019-03-04 16:04:42 +000036 "truth-prebuilt",
Kurt Dresner3d21c802020-09-29 15:32:11 -070037 // TODO: remove once Android migrates to JUnit 4.12,
38 // which provides assertThrows
39 "testng",
Colin Cross35be4242018-11-20 09:46:47 -080040 ],
41
42 libs: [
43 "android.test.runner",
44 "android.test.base",
Dmitri Plotnikov7a223fb2020-02-14 17:04:13 -080045 "android.test.mock",
Colin Cross35be4242018-11-20 09:46:47 -080046 ],
47
48 dxflags: ["--multi-dex"],
49
50 platform_apis: true,
51 test_suites: ["device-tests"],
52
53 certificate: "platform",
54
55 compile_multilib: "both",
56
57 // These are not normally accessible from apps so they must be explicitly included.
58 jni_libs: [
59 "libdexmakerjvmtiagent",
60 "libmultiplejvmtiagentsinterferenceagent",
Colin Cross35be4242018-11-20 09:46:47 -080061 "libbase",
62 "libbinder",
Colin Cross35be4242018-11-20 09:46:47 -080063 "libc++",
64 "libcutils",
65 "liblog",
66 "liblzma",
67 "libnativehelper",
Colin Cross35be4242018-11-20 09:46:47 -080068 "libui",
69 "libunwindstack",
70 "libutils",
Jeongik Cha969b9212021-01-28 00:49:47 +090071 "netd_aidl_interface-V5-cpp",
Colin Cross35be4242018-11-20 09:46:47 -080072 ],
73}