1//
2// Copyright (C) 2009 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
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21android_test {
22    name: "CtsPermissionPolicyTestCases",
23    defaults: ["cts_defaults"],
24    // Tag this module as a cts test artifact
25    test_suites: [
26        "cts",
27        "general-tests",
28    ],
29    libs: ["android.test.base"],
30    static_libs: [
31        "androidx.test.core",
32        "compatibility-device-util-axt",
33        "ctstestrunner-axt",
34        "guava",
35        "androidx.test.ext.junit-nodeps",
36        "truth",
37        "permission-test-util-lib",
38        "androidx.test.rules",
39        "flag-junit",
40    ],
41    srcs: [
42        "src/**/*.java",
43        "src/**/*.kt",
44    ],
45    sdk_version: "test_current",
46    data: [
47        ":CtsLocationPermissionsUserSdk22",
48        ":CtsLocationPermissionsUserSdk29",
49        ":CtsSMSCallLogPermissionsUserSdk22",
50        ":CtsSMSCallLogPermissionsUserSdk29",
51        ":CtsStoragePermissionsUserDefaultSdk22",
52        ":CtsStoragePermissionsUserDefaultSdk28",
53        ":CtsStoragePermissionsUserDefaultSdk29",
54        ":CtsStoragePermissionsUserOptInSdk22",
55        ":CtsStoragePermissionsUserOptInSdk28",
56        ":CtsStoragePermissionsUserOptOutSdk29",
57        ":CtsStoragePermissionsPreservedUserOptOutSdk30",
58        ":CtsLegacyStorageNotIsolatedWithSharedUid",
59        ":CtsLegacyStorageIsolatedWithSharedUid",
60        ":CtsLegacyStorageRestrictedWithSharedUid",
61        ":CtsLegacyStorageRestrictedSdk28WithSharedUid",
62        ":CtsStoragePermissionsUserOptOutSdk30",
63        ":CtsSMSRestrictedWithSharedUid",
64        ":CtsSMSNotRestrictedWithSharedUid",
65        ":CtsProcessOutgoingCalls",
66    ],
67}
68