blob: 214806e93b90b567a04d74713d5373bb523d8a37 [file] [log] [blame]
Colin Cross1d3245d2018-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",
Brett Chabot8091d9e2019-02-26 14:52:33 -080030 "androidx.test.rules",
Ian Kasprzakdf6b2f62019-03-08 18:49:31 -080031 "hamcrest-library",
Colin Cross1d3245d2018-11-20 09:46:47 -080032 "mockito-target-minus-junit4",
33 "platform-test-annotations",
34 "ShortcutManagerTestUtils",
35 "truth-prebuilt",
36 "testables",
37 "testng",
38 "ub-uiautomator",
39 "platformprotosnano",
40 "servicestests-utils",
atrost7e6060f2019-07-24 14:12:48 +010041 "xml-writer-device-lib",
Colin Cross1d3245d2018-11-20 09:46:47 -080042 ],
43
44 aidl: {
45 local_include_dirs: ["aidl"],
46 },
47
48 libs: [
49 "android.hidl.manager-V1.0-java",
50 "android.test.mock",
51 "android.test.base",
52 "android.test.runner",
53 ],
54
55 platform_apis: true,
56 test_suites: ["device-tests"],
57
58 certificate: "platform",
59
60 // These are not normally accessible from apps so they must be explicitly included.
61 jni_libs: [
62 "libbacktrace",
63 "libbase",
64 "libbinder",
65 "libbinderthreadstate",
66 "libc++",
67 "libcutils",
68 "liblog",
69 "liblzma",
70 "libnativehelper",
Colin Cross1d3245d2018-11-20 09:46:47 -080071 "libui",
Elliott Hughesfc885bb2018-12-12 12:32:15 -080072 "libunwindstack",
Colin Cross1d3245d2018-11-20 09:46:47 -080073 "libutils",
Lorenzo Colittife0c38a2019-05-21 19:45:09 +090074 "netd_aidl_interface-V2-cpp",
Colin Cross1d3245d2018-11-20 09:46:47 -080075 ],
76
77 dxflags: ["--multi-dex"],
78
79 optimize: {
80 enabled: false,
81 },
82}
83
84java_library {
85 name: "servicestests-utils",
86 srcs: [
87 "utils/**/*.java",
88 ],
89 static_libs: [
Brett Chabot8091d9e2019-02-26 14:52:33 -080090 "androidx.test.rules",
Colin Cross1d3245d2018-11-20 09:46:47 -080091 "mockito-target-minus-junit4",
92 ],
93 libs: [
94 "android.test.runner",
95 ],
96}
97
98filegroup {
99 name: "servicestests-SuspendTestApp-files",
100 srcs: [
101 "src/com/android/server/pm/SuspendPackagesTest.java",
102 ],
103}