blob: 1522a60850a1c951fb6396b4a95a7d5be9b1daf0 [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",
Tim Murray676d42d2019-02-13 20:47:46 -080072 "libpsi",
Colin Cross35be4242018-11-20 09:46:47 -080073 "libui",
Elliott Hughesfc885bb2018-12-12 12:32:15 -080074 "libunwindstack",
Colin Cross35be4242018-11-20 09:46:47 -080075 "libutils",
Luke Huang734c4ce2018-11-23 17:19:22 +080076 "netd_aidl_interface-cpp",
Colin Cross35be4242018-11-20 09:46:47 -080077 ],
78
79 dxflags: ["--multi-dex"],
80
81 optimize: {
82 enabled: false,
83 },
84}
85
86java_library {
87 name: "servicestests-utils",
88 srcs: [
89 "utils/**/*.java",
90 ],
91 static_libs: [
Brett Chabotc45f1712018-12-10 16:03:34 -080092 "junit",
Colin Cross35be4242018-11-20 09:46:47 -080093 "mockito-target-minus-junit4",
94 ],
95 libs: [
96 "android.test.runner",
97 ],
98}
99
100filegroup {
101 name: "servicestests-SuspendTestApp-files",
102 srcs: [
103 "src/com/android/server/pm/SuspendPackagesTest.java",
104 ],
105}