blob: c0d63e1012bee0cb824e73c681854863d868a0fa [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: [
Colin Cross946a0fd2019-05-07 11:22:05 -070016 "telephony-common",
17 "ims-common",
Colin Cross946a0fd2019-05-07 11:22:05 -070018 ],
19
20 static_libs: [
Joshua McCloskeyd084f6a2023-08-28 20:25:30 +000021 "androidx.arch.core_core-testing",
paulhu2efe4822020-05-12 19:42:15 +080022 "androidx.test.core",
Colin Cross946a0fd2019-05-07 11:22:05 -070023 "androidx.test.rules",
changbettyc3aa6d22020-07-24 15:20:14 +080024 "androidx.test.ext.junit",
Jeremy Goldmanae03dd32020-12-14 12:08:42 +080025 "androidx.preference_preference",
Colin Cross946a0fd2019-05-07 11:22:05 -070026 "mockito-target-minus-junit4",
27 "platform-test-annotations",
28 "truth-prebuilt",
Joshua McCloskey9642d1e2023-04-13 19:58:26 +000029 "kotlinx_coroutines_test",
Manish Singh5aef6b62023-09-12 16:52:28 +010030 "flag-junit-base",
Hai Zhang6bf47f62021-05-11 00:45:21 -070031 // Don't add SettingsLib libraries here - you can use them directly as they are in the
32 // instrumented Settings app.
Colin Cross946a0fd2019-05-07 11:22:05 -070033 ],
34
Michael Groover38819fd2023-03-16 11:24:46 -050035 errorprone: {
36 javacflags: ["-Xep:CheckReturnValue:WARN"]
37 },
Joshua McCloskey9642d1e2023-04-13 19:58:26 +000038 // Include all test java/kotlin files.
Milton Wuaadecba2023-06-13 14:54:41 +080039 srcs: [
40 "src/**/*.java",
41 "src/**/*.kt",
42 ],
Chaohui Wang81d99642023-09-08 12:13:35 +080043 use_resource_processor: true,
Colin Cross946a0fd2019-05-07 11:22:05 -070044 platform_apis: true,
45 test_suites: ["device-tests"],
46
47 instrumentation_for: "Settings",
48}