1// Copyright (C) 2022 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14package { 15 default_applicable_licenses: ["Android-Apache-2.0"], 16} 17 18android_test { 19 name: "AdServicesApkUISettingsTests", 20 srcs: [ 21 "src/**/*.java", 22 ":adservicesapk-filegroup", 23 ], 24 exclude_srcs: [ 25 "src/com/android/adservices/ui/settings/AppConsentSettingsUiAutomatorTest.java", 26 ], 27 certificate: "platform", 28 privileged: true, 29 defaults: ["modules-utils-testable-device-config-defaults"], 30 sdk_version: "module_current", 31 min_sdk_version: "Tiramisu", 32 static_libs: [ 33 "compatibility-device-util-axt", 34 "adservices-service-core", 35 "adservices-assets", 36 "adservices-test-utility", 37 "adservices-ui-test-utility", 38 "androidx.fragment_fragment", 39 "androidx.test.espresso.contrib", 40 "androidx.test.ext.junit", 41 "androidx.test.rules", 42 "mockito-target-extended-minus-junit4", 43 "androidx.room_room-runtime", 44 "androidx.room_room-testing", 45 "truth", 46 "SettingsLibActionBarShadow", 47 "SettingsLibSettingsTheme", 48 "SettingsLibCollapsingToolbarBaseActivity", 49 "SettingsLibMainSwitchPreference", 50 "androidx.test.uiautomator_uiautomator", 51 "adservices-clients", 52 ], 53 libs: [ 54 "android.test.base", 55 "android.test.mock.stubs", 56 "framework-adservices.impl", 57 "framework-annotations-lib", 58 ], 59 test_suites: [ 60 "general-tests", 61 "mts-adservices", 62 ], 63 data: [":com.example.adservices.samples.ui.consenttestapp"], 64 instrumentation_for: "AdServicesApk", 65} 66 67android_test { 68 name: "AdExtServicesApkUISettingsTests", 69 srcs: [ 70 "src/**/*.java", 71 ":adservicesapk-filegroup", 72 ], 73 exclude_srcs: [ 74 "src/com/android/adservices/ui/settings/AppConsentSettingsUiAutomatorTest.java", 75 ], 76 certificate: "platform", 77 privileged: true, 78 defaults: ["modules-utils-testable-device-config-defaults"], 79 sdk_version: "module_current", 80 min_sdk_version: "31", 81 max_sdk_version: "32", 82 static_libs: [ 83 "compatibility-device-util-axt", 84 "adservices-service-core", 85 "adservices-assets", 86 "adservices-test-utility", 87 "adservices-ui-test-utility", 88 "androidx.fragment_fragment", 89 "androidx.test.espresso.contrib", 90 "androidx.test.ext.junit", 91 "androidx.test.rules", 92 "mockito-target-extended-minus-junit4", 93 "androidx.room_room-runtime", 94 "androidx.room_room-testing", 95 "truth", 96 "SettingsLibActionBarShadow", 97 "SettingsLibSettingsTheme", 98 "SettingsLibCollapsingToolbarBaseActivity", 99 "SettingsLibMainSwitchPreference", 100 "androidx.test.uiautomator_uiautomator", 101 "adservices-clients", 102 ], 103 libs: [ 104 "android.test.base", 105 "android.test.mock.stubs", 106 "android.ext.adservices", 107 "framework-annotations-lib", 108 ], 109 test_suites: [ 110 "general-tests", 111 "mts-extservices", 112 ], 113 test_config: "AndroidTest.ExtServices.xml", 114 manifest: "AndroidManifestExtServices.xml", 115 data: [":com.example.adservices.samples.ui.consenttestapp"], 116 instrumentation_for: "ExtServices-sminus", 117} 118 119android_test { 120 name: "AdServicesApkUITestsAppConsent", 121 srcs: [ 122 "src/com/android/adservices/ui/settings/AppConsentSettingsUiAutomatorTest.java", 123 ":adservicesapk-filegroup", 124 ], 125 certificate: "platform", 126 privileged: true, 127 defaults: ["modules-utils-testable-device-config-defaults"], 128 sdk_version: "module_current", 129 min_sdk_version: "Tiramisu", 130 static_libs: [ 131 "compatibility-device-util-axt", 132 "adservices-service-core", 133 "adservices-assets", 134 "adservices-test-utility", 135 "adservices-ui-test-utility", 136 "androidx.fragment_fragment", 137 "androidx.test.espresso.contrib", 138 "androidx.test.ext.junit", 139 "androidx.test.rules", 140 "mockito-target-extended-minus-junit4", 141 "androidx.room_room-runtime", 142 "androidx.room_room-testing", 143 "truth", 144 "SettingsLibActionBarShadow", 145 "SettingsLibSettingsTheme", 146 "SettingsLibCollapsingToolbarBaseActivity", 147 "SettingsLibMainSwitchPreference", 148 "androidx.test.uiautomator_uiautomator", 149 ], 150 libs: [ 151 "android.test.base", 152 "android.test.mock.stubs", 153 "framework-adservices.impl", 154 "framework-annotations-lib", 155 ], 156 test_suites: [ 157 "general-tests", 158 "mts-adservices", 159 ], 160 test_config: "AndroidTest.AppConsent.xml", 161 data: [":com.example.adservices.samples.ui.consenttestapp"], 162 instrumentation_for: "AdServicesApk", 163} 164 165android_test { 166 name: "AdExtServicesApkUITestsAppConsent", 167 srcs: [ 168 "src/com/android/adservices/ui/settings/AppConsentSettingsUiAutomatorTest.java", 169 ":adservicesapk-filegroup", 170 ], 171 certificate: "platform", 172 privileged: true, 173 defaults: ["modules-utils-testable-device-config-defaults"], 174 max_sdk_version: "32", 175 min_sdk_version: "31", 176 static_libs: [ 177 "adservices-assets", 178 "adservices-service-core", 179 "adservices-test-utility", 180 "adservices-ui-test-utility", 181 "androidx.fragment_fragment", 182 "androidx.room_room-runtime", 183 "androidx.room_room-testing", 184 "androidx.test.espresso.contrib", 185 "androidx.test.ext.junit", 186 "androidx.test.rules", 187 "androidx.test.uiautomator_uiautomator", 188 "compatibility-device-util-axt", 189 "mockito-target-extended-minus-junit4", 190 "truth", 191 "SettingsLibActionBarShadow", 192 "SettingsLibCollapsingToolbarBaseActivity", 193 "SettingsLibMainSwitchPreference", 194 "SettingsLibSettingsTheme", 195 ], 196 libs: [ 197 "android.ext.adservices", 198 "android.test.base", 199 "android.test.mock.stubs", 200 "framework-annotations-lib", 201 ], 202 test_suites: [ 203 "general-tests", 204 "mts-extservices", 205 ], 206 test_config: "AndroidTest.AppConsent.ExtServices.xml", 207 data: [":com.example.adservices.samples.ui.consenttestapp"], 208 instrumentation_for: "ExtServices-sminus", 209 manifest: "AndroidManifestExtServices.xml", 210} 211