blob: cc003ea0d744a25263ed86cc522284e87b583f67 [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 McCloskeyd084f6a2023-08-28 20:25:30 +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",
changbettyc3aa6d22020-07-24 15:20:14 +080028 "androidx.test.ext.junit",
Jeremy Goldmanae03dd32020-12-14 12:08:42 +080029 "androidx.preference_preference",
Colin Cross946a0fd2019-05-07 11:22:05 -070030 "mockito-target-minus-junit4",
31 "platform-test-annotations",
32 "truth-prebuilt",
Fangqiu Su828f2fc2023-04-24 18:07:07 +000033 "androidx.test.uiautomator_uiautomator",
Joshua McCloskey9642d1e2023-04-13 19:58:26 +000034 "kotlinx_coroutines_test",
Hai Zhang6bf47f62021-05-11 00:45:21 -070035 // Don't add SettingsLib libraries here - you can use them directly as they are in the
36 // instrumented Settings app.
Colin Cross946a0fd2019-05-07 11:22:05 -070037 ],
38
Michael Groover38819fd2023-03-16 11:24:46 -050039 errorprone: {
40 javacflags: ["-Xep:CheckReturnValue:WARN"]
41 },
Joshua McCloskey9642d1e2023-04-13 19:58:26 +000042 // Include all test java/kotlin files.
Milton Wuaadecba2023-06-13 14:54:41 +080043 srcs: [
44 "src/**/*.java",
45 "src/**/*.kt",
46 ],
Chaohui Wang81d99642023-09-08 12:13:35 +080047 use_resource_processor: true,
Colin Cross946a0fd2019-05-07 11:22:05 -070048 platform_apis: true,
49 test_suites: ["device-tests"],
50
51 instrumentation_for: "Settings",
52}