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 15filegroup { 16 name: "service-configinfrastructure-unitttests-bootstrap-files", 17 srcs: [ 18 "data/*", 19 ], 20} 21 22android_test { 23 name: "ConfigInfrastructureServiceUnitTests", 24 min_sdk_version: "34", 25 sdk_version: "module_current", 26 manifest: "AndroidManifest.xml", 27 test_config: "AndroidTest.xml", 28 data: [ 29 ":service-configinfrastructure-unitttests-bootstrap-files", 30 ], 31 srcs: [ 32 "src/**/*.java", 33 ], 34 test_suites: [ 35 "mts-configinfrastructure", 36 "general-tests", 37 ], 38 static_libs: [ 39 "androidx.test.rules", 40 "androidx.test.runner", 41 "androidx.annotation_annotation", 42 "configinfra_framework_flags_java_lib", 43 "modules-utils-build", 44 "service-configinfrastructure.impl", 45 "frameworks-base-testutils", 46 "mockito-target-minus-junit4", 47 "truth", 48 "flag-junit", 49 ], 50 libs: [ 51 "android.test.base.stubs.system", 52 "android.test.mock.stubs.system", 53 "android.test.runner.stubs.system", 54 "framework-connectivity.stubs.module_lib", 55 "framework-configinfrastructure.stubs.module_lib", 56 "DeviceConfigServiceResources", 57 ], 58 // Test coverage system runs on different devices. Need to 59 // compile for all architecture. 60 compile_multilib: "both", 61} 62