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 "mockito-target-minus-junit4", 30 "platform-test-annotations", 31 "platform-test-rules", 32 "truth", 33 "kotlinx_coroutines_test", 34 "Settings-testutils2", 35 "MediaDrmSettingsFlagsLib", 36 // Don't add SettingsLib libraries here - you can use them directly as they are in the 37 // instrumented Settings app. 38 ], 39 40 errorprone: { 41 javacflags: ["-Xep:CheckReturnValue:WARN"], 42 }, 43 // Include all test java/kotlin files. 44 srcs: [ 45 "src/**/*.java", 46 "src/**/*.kt", 47 ], 48 use_resource_processor: true, 49 platform_apis: true, 50 test_suites: ["device-tests"], 51 52 instrumentation_for: "Settings", 53} 54