1package { 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 10android_test { 11 name: "SettingsUnitTests", 12 13 certificate: "platform", 14 15 libs: [ 16 "android.test.runner", 17 "telephony-common", 18 "ims-common", 19 "android.test.base", 20 "android.test.mock", 21 ], 22 23 static_libs: [ 24 "androidx.test.core", 25 "androidx.test.rules", 26 "androidx.test.espresso.core", 27 "androidx.test.espresso.contrib-nodeps", 28 "androidx.test.espresso.intents-nodeps", 29 "androidx.test.ext.junit", 30 "androidx.preference_preference", 31 "mockito-target-minus-junit4", 32 "platform-test-annotations", 33 "truth-prebuilt", 34 "ub-uiautomator", 35 // Don't add SettingsLib libraries here - you can use them directly as they are in the 36 // instrumented Settings app. 37 ], 38 39 // Include all test java files. 40 srcs: ["src/**/*.java"], 41 42 platform_apis: true, 43 test_suites: ["device-tests"], 44 45 instrumentation_for: "Settings", 46} 47