1// Copyright (C) 2021 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 15// ============================================================ 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20android_test { 21 name: "ServiceBluetoothTests", 22 defaults: ["service-bluetooth-buildflags"], 23 srcs: [ 24 "src/**/*.java", 25 "src/**/*.kt", 26 ], 27 28 static_libs: [ 29 "androidx.test.rules", 30 "flag-junit", 31 "frameworks-base-testutils", 32 "kotlinx_coroutines_test", 33 "libprotobuf-java-nano", 34 "mockito-target-extended-minus-junit4", 35 "platform-compat-test-rules", 36 "platform-parametric-runner-lib", 37 "platform-test-annotations", 38 39 // Linking source to test the working copy, not the on-device copy. 40 // Use 'pre-jarjar' so that we can reference symbols before renaming. 41 "service-bluetooth-pre-jarjar", 42 "truth", 43 ], 44 45 libs: [ 46 "android.test.base.stubs.system", 47 "android.test.mock.stubs.system", 48 "android.test.runner.stubs.system", 49 "framework-bluetooth-pre-jarjar", 50 "service-bluetooth.change-ids", 51 ], 52 jni_libs: [ 53 // these are needed for Extended Mockito 54 "libdexmakerjvmtiagent", 55 "libstaticjvmtiagent", 56 ], 57 58 test_suites: [ 59 "general-tests", 60 "mts-bluetooth", 61 ], 62 63 min_sdk_version: "Tiramisu", 64} 65