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.
14package {
15    default_applicable_licenses: ["Android-Apache-2.0"],
16}
17
18android_test {
19    name: "AdServicesApkUISettingsGaOtaTests",
20    srcs: [
21        "src/**/*.java",
22        ":adservicesapk-filegroup",
23    ],
24    certificate: "platform",
25    privileged: true,
26    defaults: ["modules-utils-testable-device-config-defaults"],
27    sdk_version: "module_current",
28    min_sdk_version: "Tiramisu",
29    static_libs: [
30        "compatibility-device-util-axt",
31        "adservices-service-core",
32        "adservices-assets",
33        "adservices-test-utility",
34        "adservices-ui-test-utility",
35        "androidx.fragment_fragment",
36        "androidx.test.espresso.contrib",
37        "androidx.test.ext.junit",
38        "androidx.test.rules",
39        "mockito-target-extended-minus-junit4",
40        "androidx.room_room-runtime",
41        "androidx.room_room-testing",
42        "truth",
43        "SettingsLibActionBarShadow",
44        "SettingsLibSettingsTheme",
45        "SettingsLibCollapsingToolbarBaseActivity",
46        "SettingsLibMainSwitchPreference",
47        "androidx.test.uiautomator_uiautomator",
48        "adservices-clients",
49    ],
50    libs: [
51        "android.test.base",
52        "android.test.mock.stubs",
53        "framework-adservices.impl",
54        "framework-annotations-lib",
55    ],
56    test_suites: [
57        "general-tests",
58        "mts-adservices",
59    ],
60    data: [":com.example.adservices.samples.ui.consenttestapp"],
61    instrumentation_for: "AdServicesApk",
62}
63
64android_test {
65    name: "AdExtServicesApkUISettingsGaOtaTests",
66    srcs: [
67        "src/**/*.java",
68        ":adservicesapk-filegroup",
69    ],
70    certificate: "platform",
71    privileged: true,
72    defaults: ["modules-utils-testable-device-config-defaults"],
73    sdk_version: "module_current",
74    min_sdk_version: "30",
75    max_sdk_version: "32",
76    static_libs: [
77        "compatibility-device-util-axt",
78        "adservices-service-core",
79        "adservices-assets",
80        "adservices-test-utility",
81        "adservices-ui-test-utility",
82        "androidx.fragment_fragment",
83        "androidx.test.espresso.contrib",
84        "androidx.test.ext.junit",
85        "androidx.test.rules",
86        "mockito-target-extended-minus-junit4",
87        "androidx.room_room-runtime",
88        "androidx.room_room-testing",
89        "truth",
90        "SettingsLibActionBarShadow",
91        "SettingsLibSettingsTheme",
92        "SettingsLibCollapsingToolbarBaseActivity",
93        "SettingsLibMainSwitchPreference",
94        "androidx.test.uiautomator_uiautomator",
95        "adservices-clients",
96    ],
97    libs: [
98        "android.test.base",
99        "android.test.mock.stubs",
100        "android.ext.adservices",
101        "framework-annotations-lib",
102    ],
103    test_suites: [
104        "general-tests",
105        "mts-extservices",
106    ],
107    test_config: "AndroidTest.ExtServices.xml",
108    manifest: "AndroidManifestExtServices.xml",
109    data: [":com.example.adservices.samples.ui.consenttestapp"],
110    instrumentation_for: "ExtServices-sminus",
111}
112