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