1// 2// Copyright (C) 2019 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17// NOTE: This test is separate from service tests since it relies on same vs different calling UID, 18// and this is more representative of a real caller. It also uses Mockito extended, and this 19// prevents converting the entire services test module. 20package { 21 // See: http://go/android-license-faq 22 // A large-scale-change added 'default_applicable_licenses' to import 23 // all of the 'license_kinds' from "frameworks_base_license" 24 // to get the below license kinds: 25 // SPDX-license-identifier-Apache-2.0 26 default_applicable_licenses: ["frameworks_base_license"], 27} 28 29android_test { 30 name: "PackageManagerComponentOverrideTests", 31 srcs: [ 32 "src/**/*.kt" 33 ], 34 static_libs: [ 35 "androidx.test.runner", 36 "mockito-target-extended-minus-junit4", 37 "services.core", 38 "servicestests-utils-mockito-extended", 39 "testng", // TODO: remove once Android migrates to JUnit 4.12, which provides assertThrows 40 "truth-prebuilt", 41 ], 42 43 jni_libs: [ 44 "libdexmakerjvmtiagent", 45 "libstaticjvmtiagent", 46 ], 47 test_suites: ["device-tests"], 48 platform_apis: true, 49} 50