1// Copyright (C) 2024 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: "CarBuiltinLibUnitTest", 21 team: "trendy_team_aaos_framework", 22 srcs: [ 23 "src/**/*", 24 ], 25 libs: [ 26 "android.car.builtin.impl", 27 // The following three lines are needed for tests that build against framework-bluetooth's 28 // @hide APIs. Order matters for the first two: classes in framework-bluetooth are 29 // resolved before framework, meaning @hide APIs in framework-bluetooth are resolved 30 // before @SystemApi stubs in framework. If sdk_version="", then the third line would get 31 // automatically included; since it isn't, it needs to be manually added here. 32 // (Ref: "framework-bluetooth-tests-defaults" in packages/modules/Bluetooth/framework/Android.bp) 33 "framework-bluetooth.impl", 34 "framework", 35 "framework-res", 36 ], 37 static_libs: [ 38 "androidx.test.core", 39 "androidx.test.runner", 40 "junit", 41 "mockito-target-inline", 42 "truth", 43 ], 44 // mockito-target-inline dependency 45 jni_libs: [ 46 "libdexmakerjvmtiagent", 47 ], 48 sdk_version: "core_platform", 49 platform_apis: true, 50 // Signed with platform certificate to use shared user ID and access platform APIs. 51 certificate: "platform", 52 test_suites: [ 53 "automotive-tests", 54 "device-tests", 55 ], 56 test_config: "AndroidTest.xml", 57} 58