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
19java_defaults {
20    name: "enrollment_defaults",
21    team: "trendy_team_android_rubidium",
22    srcs: [
23        "src/**/*.java",
24    ],
25    static_libs: [
26        "androidx.test.runner",
27        "adservices-assets",
28        "adservices-service-core",
29        "adservices-test-utility",
30        "adservices-ui-cts-root-test-lib",
31        "platform-test-rules",
32        "truth",
33    ],
34    libs: [
35        "android.test.base.stubs.system",
36        "android.test.runner.stubs.system",
37        "framework-adservices-lib",
38    ],
39    test_suites: [
40        "general-tests",
41    ],
42    sdk_version: "module_current",
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: "AdServicesEnrollmentTest",
51    defaults: ["enrollment_defaults"],
52    min_sdk_version: "33",
53    manifest: "AndroidManifest.xml",
54    test_config: "AndroidTest.xml",
55}
56
57android_test {
58    name: "AdExtServicesEnrollmentTest",
59    defaults: ["enrollment_defaults"],
60    min_sdk_version: "31",
61    max_sdk_version: "32",
62    test_config: "AndroidTest.ExtServices.xml",
63    manifest: "AndroidManifestExtServices.xml",
64}
65