1package { 2 default_team: "trendy_team_fwk_telecom", 3 // See: http://go/android-license-faq 4 default_applicable_licenses: ["Android-Apache-2.0"], 5} 6 7android_test { 8 name: "ContactsProviderTests", 9 static_libs: [ 10 "ContactsProviderTestUtils", 11 "androidx.test.rules", 12 "androidx.test.core", 13 "androidx.test.ext.junit", 14 "androidx.test.uiautomator_uiautomator", 15 "mockito-target-minus-junit4", 16 "flag-junit", 17 "android.content.pm.flags-aconfig-java", 18 "contactsprovider_flags_java_lib", 19 "platform-compat-test-rules", 20 ], 21 libs: [ 22 "android.test.runner.stubs.system", 23 "android.test.base.stubs.system", 24 "android.test.mock.stubs.system", 25 ], 26 27 // Only compile source java files in this apk. 28 srcs: ["src/**/*.java"], 29 platform_apis: true, 30 test_suites: ["device-tests"], 31 instrumentation_for: "ContactsProvider", 32 certificate: "shared", 33 optimize: { 34 enabled: false, 35 }, 36} 37 38// Tests with all launch-able flags enabled by default. 39// All flags' value will be true unless overridden in the individual tests. 40test_module_config { 41 name: "ContactsProviderTestsWithAllFlagEnabled", 42 base: "ContactsProviderTests", 43 test_suites: ["device-tests"], 44 45 options: [ 46 { 47 name: "feature-flags:flag-value", 48 value: "contacts/com.android.providers.contacts.flags.cp2_account_move_flag=true", 49 }, 50 { 51 name: "feature-flags:flag-value", 52 value: "contacts/android.provider.new_default_account_api_enabled=true", 53 }, 54 ], 55} 56 57// Tests with all launch-able flags disabled by default. 58// All flags' value will be false unless overridden in the individual tests. 59test_module_config { 60 name: "ContactsProviderTestsWithAllFlagDisabled", 61 base: "ContactsProviderTests", 62 test_suites: ["device-tests"], 63 64 options: [ 65 { 66 name: "feature-flags:flag-value", 67 value: "contacts/com.android.providers.contacts.flags.cp2_account_move_flag=false", 68 }, 69 { 70 name: "feature-flags:flag-value", 71 value: "contacts/android.provider.new_default_account_api_enabled=false", 72 }, 73 ], 74} 75