1// Copyright (C) 2023 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 19// NOTE: it doesn't need the AdExtServicesTestUtilityTests counterpart because 20// the infra being test should run on any release. 21android_test { 22 name: "AdServicesTestUtilityTests", 23 srcs: [ 24 "src/**/*.java", 25 "side-less/**/*.java", 26 ":adservices-shared-sideless-meta-testing-sources", 27 ], 28 libs: [ 29 "framework-adservices-lib", // Needed to test fake ServiceBinder implementations 30 ], 31 static_libs: [ 32 "adservices-test-utility", 33 "auto_value_annotations", 34 "androidx.test.core", 35 "truth", 36 ], 37 defaults: ["adservices-extended-mockito-defaults"], 38 sdk_version: "module_current", 39 plugins: ["auto_annotation_plugin"], 40 test_config: "AndroidTest.xml", 41 min_sdk_version: "30", 42 target_sdk_version: "31", 43 lint: { 44 extra_check_modules: ["AdServicesTestLintChecker"], 45 baseline_filename: "lint-baseline.xml", 46 test: false, // TODO(b/343741206): remove when checks will run on android_test 47 }, 48} 49