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_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19android_test {
20    name: "CtsAdServicesEndToEndTestMeasurement",
21    team: "trendy_team_android_rubidium",
22    srcs: [
23        "src/**/*.java",
24    ],
25    static_libs: [
26        "adservices-test-utility",
27    ],
28    libs: [
29        "android.test.base",
30        "framework-adservices-lib",
31        "framework-sdksandbox.impl",
32    ],
33    test_suites: [
34        "cts",
35        "general-tests",
36        "mts-adservices",
37        "mcts-adservices",
38    ],
39    // To fix Pre-submit warning, suggested by farivar@
40    javacflags: ["-parameters"],
41    sdk_version: "module_current",
42    min_sdk_version: "Tiramisu",
43    lint: {
44        extra_check_modules: ["AdServicesTestLintChecker"],
45        test: false, // TODO(b/343741206): remove when checks will run on android_test
46    },
47}
48
49android_test {
50    name: "CtsAdExtServicesEndToEndTestMeasurement",
51    srcs: [
52        "src/**/*.java",
53    ],
54    static_libs: [
55        "adservices-test-utility",
56    ],
57    libs: [
58        "android.ext.adservices",
59        "android.test.base",
60        "framework-adservices-lib",
61        "framework-sdksandbox.impl",
62    ],
63    test_suites: [
64        "cts",
65        "general-tests",
66        "mts-extservices",
67        "mcts-extservices",
68    ],
69    javacflags: ["-parameters"],
70    sdk_version: "module_current",
71    min_sdk_version: "30",
72    max_sdk_version: "32",
73    test_config: "AndroidTest.ExtServices.xml",
74    manifest: "AndroidManifestExtServices.xml",
75    lint: {
76        extra_check_modules: ["AdServicesTestLintChecker"],
77        baseline_filename: "lint-baseline-adextservices.xml",
78        test: false, // TODO(b/343741206): remove when checks will run on android_test
79    },
80}
81