blob: 4ee9551542b556db4e0459c5939701c090f1fdde [file] [log] [blame]
Colin Cross35be4242018-11-20 09:46:47 -08001//########################################################################
2// Build FrameworksServicesTests package
3//########################################################################
4
5android_test {
6 name: "FrameworksServicesTests",
7
8 // Include all test java files.
9 srcs: [
10 "src/**/*.java",
11
12 "aidl/com/android/servicestests/aidl/INetworkStateObserver.aidl",
13 "aidl/com/android/servicestests/aidl/ICmdReceiverService.aidl",
14
15 "test-apps/JobTestApp/src/**/*.java",
16
17 "test-apps/SuspendTestApp/src/**/*.java",
18 ],
19 static_libs: [
20 "frameworks-base-testutils",
21 "services.accessibility",
22 "services.appwidget",
23 "services.autofill",
24 "services.backup",
25 "services.core",
26 "services.devicepolicy",
27 "services.net",
28 "services.usage",
29 "guava",
30 "androidx.test.runner",
31 "androidx.test.rules",
32 "mockito-target-minus-junit4",
33 "platform-test-annotations",
34 "ShortcutManagerTestUtils",
35 "truth-prebuilt",
36 "testables",
37 "testng",
38 "ub-uiautomator",
39 "platformprotosnano",
40 "hamcrest-library",
41 "servicestests-utils",
42 ],
43
44 aidl: {
45 local_include_dirs: ["aidl"],
46 },
47
48 libs: [
49 "android.hidl.manager-V1.0-java",
50 "android.hardware.tv.cec-V1.0-java",
51 "android.test.mock",
52 "android.test.base",
53 "android.test.runner",
54 ],
55
56 platform_apis: true,
57 test_suites: ["device-tests"],
58
59 certificate: "platform",
60
61 // These are not normally accessible from apps so they must be explicitly included.
62 jni_libs: [
63 "libbacktrace",
64 "libbase",
65 "libbinder",
66 "libbinderthreadstate",
67 "libc++",
68 "libcutils",
69 "liblog",
70 "liblzma",
71 "libnativehelper",
Colin Cross35be4242018-11-20 09:46:47 -080072 "libui",
Elliott Hughesfc885bb2018-12-12 12:32:15 -080073 "libunwindstack",
Colin Cross35be4242018-11-20 09:46:47 -080074 "libutils",
Luke Huang734c4ce2018-11-23 17:19:22 +080075 "netd_aidl_interface-cpp",
Colin Cross35be4242018-11-20 09:46:47 -080076 ],
77
78 dxflags: ["--multi-dex"],
79
80 optimize: {
81 enabled: false,
82 },
83}
84
85java_library {
86 name: "servicestests-utils",
87 srcs: [
88 "utils/**/*.java",
89 ],
90 static_libs: [
Brett Chabotc45f1712018-12-10 16:03:34 -080091 "junit",
Colin Cross35be4242018-11-20 09:46:47 -080092 "mockito-target-minus-junit4",
93 ],
94 libs: [
95 "android.test.runner",
96 ],
97}
98
99filegroup {
100 name: "servicestests-SuspendTestApp-files",
101 srcs: [
102 "src/com/android/server/pm/SuspendPackagesTest.java",
103 ],
104}