blob: b4b79dd3320b337ec8c6a1edde8c711ad8b8e002 [file] [log] [blame]
Bob Badoura73a6722021-02-25 15:05:14 -08001package {
Aditya Choudhary01735e62024-02-05 15:41:26 +00002 default_team: "trendy_team_android_settings_app",
Bob Badoura73a6722021-02-25 15:05:14 -08003 // See: http://go/android-license-faq
4 // A large-scale-change added 'default_applicable_licenses' to import
5 // all of the 'license_kinds' from "packages_apps_Settings_license"
6 // to get the below license kinds:
7 // SPDX-license-identifier-Apache-2.0
8 default_applicable_licenses: ["packages_apps_Settings_license"],
9}
10
Colin Cross946a0fd2019-05-07 11:22:05 -070011android_test {
12 name: "SettingsUnitTests",
13
14 certificate: "platform",
15
16 libs: [
17 "android.test.runner",
18 "telephony-common",
19 "ims-common",
20 "android.test.base",
21 "android.test.mock",
22 ],
23
24 static_libs: [
Krzysztof Kosiński15e17e02023-10-11 19:41:36 +000025 "androidx.arch.core_core-testing",
paulhu2efe4822020-05-12 19:42:15 +080026 "androidx.test.core",
Colin Cross946a0fd2019-05-07 11:22:05 -070027 "androidx.test.rules",
28 "androidx.test.espresso.core",
29 "androidx.test.espresso.contrib-nodeps",
30 "androidx.test.espresso.intents-nodeps",
changbettyc3aa6d22020-07-24 15:20:14 +080031 "androidx.test.ext.junit",
Jeremy Goldmanae03dd32020-12-14 12:08:42 +080032 "androidx.preference_preference",
Colin Cross946a0fd2019-05-07 11:22:05 -070033 "mockito-target-minus-junit4",
34 "platform-test-annotations",
Eghosa Ewansiha-Vlachavas136bd902023-09-26 18:29:37 +000035 "platform-test-rules",
Krzysztof Kosiński15e17e02023-10-11 19:41:36 +000036 "truth",
Fangqiu Su828f2fc2023-04-24 18:07:07 +000037 "androidx.test.uiautomator_uiautomator",
Joshua McCloskey2f464892023-04-13 19:58:26 +000038 "kotlinx_coroutines_test",
Hai Zhang6bf47f62021-05-11 00:45:21 -070039 // Don't add SettingsLib libraries here - you can use them directly as they are in the
40 // instrumented Settings app.
Colin Cross946a0fd2019-05-07 11:22:05 -070041 ],
42
Michael Groover38819fd2023-03-16 11:24:46 -050043 errorprone: {
Krzysztof Kosiński15e17e02023-10-11 19:41:36 +000044 javacflags: ["-Xep:CheckReturnValue:WARN"],
Michael Groover38819fd2023-03-16 11:24:46 -050045 },
46
Joshua McCloskey2f464892023-04-13 19:58:26 +000047 // Include all test java/kotlin files.
48 srcs: [
49 "src/**/*.java",
50 "src/**/*.kt",
51 ],
Colin Cross946a0fd2019-05-07 11:22:05 -070052
53 platform_apis: true,
54 test_suites: ["device-tests"],
55
56 instrumentation_for: "Settings",
57}