xref: /aosp_15_r20/frameworks/base/services/tests/PackageManagerComponentOverrideTests/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
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    default_team: "trendy_team_framework_android_packages",
22    // See: http://go/android-license-faq
23    // A large-scale-change added 'default_applicable_licenses' to import
24    // all of the 'license_kinds' from "frameworks_base_license"
25    // to get the below license kinds:
26    //   SPDX-license-identifier-Apache-2.0
27    default_applicable_licenses: ["frameworks_base_license"],
28}
29
30android_test {
31    name: "PackageManagerComponentOverrideTests",
32    srcs: [
33        "src/**/*.kt",
34    ],
35    static_libs: [
36        "androidx.test.runner",
37        "mockito-target-extended-minus-junit4",
38        "services.core",
39        "service-permission.stubs.system_server",
40        "servicestests-utils-mockito-extended",
41        "testng", // TODO: remove once Android migrates to JUnit 4.12, which provides assertThrows
42        "truth",
43    ],
44
45    jni_libs: [
46        "libdexmakerjvmtiagent",
47        "libstaticjvmtiagent",
48    ],
49    test_suites: ["device-tests"],
50    platform_apis: true,
51}
52