blob: 30e8bc1f4bd7a5045a036a6dccac5fa5748e5298 [file] [log] [blame]
Bob Badoura73a6722021-02-25 15:05:14 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "packages_apps_Settings_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["packages_apps_Settings_license"],
8}
9
Colin Cross946a0fd2019-05-07 11:22:05 -070010android_test {
11 name: "SettingsUnitTests",
12
13 certificate: "platform",
14
15 libs: [
16 "android.test.runner",
17 "telephony-common",
18 "ims-common",
19 "android.test.base",
20 "android.test.mock",
21 ],
22
23 static_libs: [
Joshua McCloskey5a4211e2023-05-30 20:38:24 +000024 "androidx.arch.core_core-testing",
paulhu2efe4822020-05-12 19:42:15 +080025 "androidx.test.core",
Colin Cross946a0fd2019-05-07 11:22:05 -070026 "androidx.test.rules",
27 "androidx.test.espresso.core",
28 "androidx.test.espresso.contrib-nodeps",
29 "androidx.test.espresso.intents-nodeps",
changbettyc3aa6d22020-07-24 15:20:14 +080030 "androidx.test.ext.junit",
Jeremy Goldmanae03dd32020-12-14 12:08:42 +080031 "androidx.preference_preference",
Colin Cross946a0fd2019-05-07 11:22:05 -070032 "mockito-target-minus-junit4",
33 "platform-test-annotations",
Eghosa Ewansiha-Vlachavas136bd902023-09-26 18:29:37 +000034 "platform-test-rules",
Colin Cross946a0fd2019-05-07 11:22:05 -070035 "truth-prebuilt",
36 "ub-uiautomator",
Joshua McCloskeyb7f0d7a2023-04-13 19:58:26 +000037 "kotlinx_coroutines_test",
Hai Zhang6bf47f62021-05-11 00:45:21 -070038 // Don't add SettingsLib libraries here - you can use them directly as they are in the
39 // instrumented Settings app.
Colin Cross946a0fd2019-05-07 11:22:05 -070040 ],
41
Michael Groover38819fd2023-03-16 11:24:46 -050042 errorprone: {
43 javacflags: ["-Xep:CheckReturnValue:WARN"]
44 },
45
Joshua McCloskeyb7f0d7a2023-04-13 19:58:26 +000046 // Include all test java/kotlin files.
47 srcs: [
48 "src/**/*.java",
49 "src/**/*.kt",
50 ],
Colin Cross946a0fd2019-05-07 11:22:05 -070051
52 platform_apis: true,
53 test_suites: ["device-tests"],
54
55 instrumentation_for: "Settings",
56}