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. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19android_test { 20 name: "AdServicesEndToEndTests", 21 srcs: [ 22 "src/**/*.java", 23 ], 24 sdk_version: "module_current", 25 static_libs: [ 26 "adservices-clients", 27 "androidx.concurrent_concurrent-futures", 28 "androidx.test.rules", 29 "compatibility-device-util-axt", 30 "mockito-target-extended-minus-junit4", 31 "truth", 32 "framework-adservices.impl", 33 "framework-sdksandbox.impl", 34 "adservices-test-fixtures", 35 "adservices-test-utility", 36 ], 37 libs: [ 38 "android.test.base", 39 ], 40 test_suites: [ 41 "general-tests", 42 ], 43 lint: { 44 extra_check_modules: ["AdServicesTestLintChecker"], 45 test: false, // TODO(b/343741206): remove when checks will run on android_test 46 }, 47} 48 49android_test { 50 name: "AdExtServicesEndToEndTests", 51 defaults: ["mts-target-sdk-version-current"], 52 srcs: [ 53 "src/**/*.java", 54 ], 55 sdk_version: "module_current", 56 static_libs: [ 57 "adservices-clients", 58 "androidx.concurrent_concurrent-futures", 59 "androidx.test.rules", 60 "compatibility-device-util-axt", 61 "mockito-target-extended-minus-junit4", 62 "truth", 63 "framework-adservices.impl", 64 "framework-sdksandbox.impl", 65 "adservices-test-fixtures", 66 "adservices-test-utility", 67 ], 68 libs: [ 69 "android.test.base", 70 "android.ext.adservices", 71 ], 72 test_suites: [ 73 "general-tests", 74 ], 75 min_sdk_version: "30", 76 max_sdk_version: "32", 77 test_config: "AndroidTest.ExtServices.xml", 78 manifest: "AndroidManifestExtServices.xml", 79 lint: { 80 extra_check_modules: ["AdServicesTestLintChecker"], 81 baseline_filename: "lint-baseline-adextservices.xml", 82 test: false, // TODO(b/343741206): remove when checks will run on android_test 83 }, 84} 85