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: "CtsAdServicesCustomAudienceTests",
21    team: "trendy_team_android_rubidium",
22    srcs: [
23        "src/**/*.java",
24    ],
25    static_libs: [
26        "androidx.concurrent_concurrent-futures",
27        "compatibility-device-util-axt",
28        "truth",
29        "adservices-clients",
30        "adservices-cts-assets",
31        "adservices-test-fixtures",
32        "adservices-test-utility",
33        "adservices-cts-test-utility",
34        "mockwebserver",
35    ],
36    libs: [
37        "android.test.base",
38        "framework-adservices-lib",
39        "framework-sdksandbox.impl",
40    ],
41    test_suites: [
42        "general-tests",
43        "mts-adservices",
44        "mcts-adservices",
45    ],
46    data: [
47        // Sample apps will be installed and uninstalled in the test.
48        ":CtsSampleCustomAudienceAppHighBid",
49        ":CtsSampleCustomAudienceAppLowBid",
50    ],
51    sdk_version: "module_current",
52    min_sdk_version: "Tiramisu",
53    lint: {
54        extra_check_modules: ["AdServicesTestLintChecker"],
55        test: false, // TODO(b/343741206): remove when checks will run on android_test
56    },
57}
58
59android_test {
60    name: "CtsAdExtServicesCustomAudienceTests",
61    team: "trendy_team_android_rubidium",
62    srcs: [
63        "src/**/*.java",
64    ],
65    static_libs: [
66        "androidx.concurrent_concurrent-futures",
67        "compatibility-device-util-axt",
68        "truth",
69        "adservices-clients",
70        "adservices-cts-assets",
71        "adservices-test-fixtures",
72        "adservices-test-utility",
73        "adservices-cts-test-utility",
74        "mockwebserver",
75    ],
76    libs: [
77        "android.ext.adservices",
78        "android.test.base",
79        "framework-adservices-lib",
80        "framework-sdksandbox.impl",
81    ],
82    test_suites: [
83        "general-tests",
84        "mts-adservices",
85        "mcts-adservices",
86    ],
87    data: [
88        // Sample apps will be installed and uninstalled in the test.
89        ":CtsSampleCustomAudienceAppHighBid",
90        ":CtsSampleCustomAudienceAppLowBid",
91    ],
92    sdk_version: "module_current",
93    min_sdk_version: "30",
94    max_sdk_version: "32",
95    test_config: "AndroidTest.ExtServices.xml",
96    manifest: "AndroidManifestExtServices.xml",
97    lint: {
98        extra_check_modules: ["AdServicesTestLintChecker"],
99        baseline_filename: "lint-baseline-adextservices.xml",
100        test: false, // TODO(b/343741206): remove when checks will run on android_test
101    },
102}
103