1package { 2 default_team: "trendy_team_updatable_sdk_apis", 3 // See: http://go/android-license-faq 4 default_applicable_licenses: ["Android-Apache-2.0"], 5} 6 7android_test { 8 name: "ApiDemosTests", 9 // We only want this apk build for tests. 10 libs: [ 11 "android.test.runner.stubs", 12 "android.test.base.stubs", 13 ], 14 static_libs: [ 15 "junit", 16 "androidx.test.rules", 17 ], 18 // Include all test java files. 19 srcs: ["src/**/*.java"], 20 // Notice that we don't have to include the src files of ApiDemos because, by 21 // running the tests using an instrumentation targeting ApiDemos, we 22 // automatically get all of its classes loaded into our environment. 23 instrumentation_for: "ApiDemos", 24 sdk_version: "current", 25} 26