1package {
2    default_team: "trendy_team_android_settings_app",
3    // 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
11android_test {
12    name: "SettingsUnitTests",
13
14    certificate: "platform",
15
16    libs: [
17        "telephony-common",
18        "ims-common",
19    ],
20
21    static_libs: [
22        "aconfig_settings_flags_lib",
23        "androidx.arch.core_core-testing",
24        "androidx.lifecycle_lifecycle-runtime-testing",
25        "androidx.test.espresso.core",
26        "androidx.test.ext.junit",
27        "androidx.test.rules",
28        "flag-junit",
29        "kotlin-test",
30        "mockito-kotlin2",
31        "mockito-target-minus-junit4",
32        "platform-test-annotations",
33        "platform-test-rules",
34        "truth",
35        "kotlinx_coroutines_test",
36        "SettingsLibPreference-testutils",
37        "Settings-testutils2",
38        "servicestests-utils",
39        // Don't add SettingsLib libraries here - you can use them directly as they are in the
40        // instrumented Settings app.
41    ],
42
43    errorprone: {
44        javacflags: ["-Xep:CheckReturnValue:WARN"],
45    },
46    // Include all test java/kotlin files.
47    srcs: [
48        "src/**/*.java",
49        "src/**/*.kt",
50    ],
51    use_resource_processor: true,
52    platform_apis: true,
53    test_suites: ["device-tests"],
54
55    instrumentation_for: "Settings",
56}
57