• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        "testables",
35        "truth",
36        "kotlinx_coroutines_test",
37        "SettingsLibPreference-testutils",
38        "Settings-testutils2",
39        "servicestests-utils",
40        // Don't add SettingsLib libraries here - you can use them directly as they are in the
41        // instrumented Settings app.
42    ],
43
44    errorprone: {
45        javacflags: ["-Xep:CheckReturnValue:WARN"],
46    },
47    // Include all test java/kotlin files.
48    srcs: [
49        "src/**/*.java",
50        "src/**/*.kt",
51    ],
52    use_resource_processor: true,
53    platform_apis: true,
54    test_suites: ["device-tests"],
55
56    instrumentation_for: "Settings",
57}
58