1// Copyright (C) 2022 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_team: "trendy_team_android_rubidium",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_test {
21    name: "CtsAdServicesPermissionsValidEndToEndTests",
22    defaults: [
23        "cts_defaults",
24        "modules-utils-testable-device-config-defaults",
25    ],
26    srcs: [
27        "src/**/*.java",
28    ],
29    static_libs: [
30        "adservices-clients",
31        "adservices-test-fixtures",
32        "adservices-test-utility",
33        "adservices-cts-test-utility",
34        "androidx.concurrent_concurrent-futures",
35        "compatibility-device-util-axt",
36        "truth",
37    ],
38    libs: [
39        "android.test.base.stubs.system",
40        "framework-adservices.stubs.module_lib",
41        "framework-sdksandbox.impl",
42    ],
43    test_suites: [
44        "cts",
45        "general-tests",
46        "mts-adservices",
47        "mcts-adservices",
48    ],
49    min_sdk_version: "33",
50    manifest: "AndroidManifest.xml",
51    lint: {
52        extra_check_modules: ["AdServicesTestLintChecker"],
53        baseline_filename: "lint-baseline.xml",
54        test: false, // TODO(b/343741206): remove when checks will run on android_test
55    },
56}
57
58android_test {
59    name: "CtsAdExtServicesPermissionsValidEndToEndTests",
60    defaults: [
61        "cts_defaults",
62        "modules-utils-testable-device-config-defaults",
63    ],
64    srcs: [
65        "src/**/*.java",
66    ],
67    static_libs: [
68        "adservices-clients",
69        "adservices-test-fixtures",
70        "adservices-test-utility",
71        "adservices-cts-test-utility",
72        "androidx.concurrent_concurrent-futures",
73        "compatibility-device-util-axt",
74        "truth",
75    ],
76    libs: [
77        "android.ext.adservices",
78        "android.test.base.stubs.system",
79        "framework-adservices.stubs.module_lib",
80        "framework-sdksandbox.impl",
81    ],
82    test_suites: [
83        "cts",
84        "general-tests",
85        "mts-extservices",
86        "mcts-extservices",
87    ],
88    sdk_version: "module_current",
89    min_sdk_version: "31",
90    max_sdk_version: "32",
91    test_config: "AndroidTest.ExtServices.xml",
92    manifest: "AndroidManifestExtServices.xml",
93    lint: {
94        extra_check_modules: ["AdServicesTestLintChecker"],
95        test: false, // TODO(b/343741206): remove when checks will run on android_test
96    },
97}
98