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: "AdServicesApkUINotificationTests",
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        "adservices-ui-cts-root-test-lib",
50    ],
51    libs: [
52        "android.test.base.stubs.system",
53        "android.test.mock.stubs",
54        "framework-adservices.impl",
55        "framework-annotations-lib",
56    ],
57    test_suites: [
58        "general-tests",
59        "mts-adservices",
60    ],
61    data: [
62        ":com.example.adservices.samples.ui.consenttestapp",
63        ":com.example.adservices.samples.ui.sampletestapp",
64    ],
65    instrumentation_for: "AdServicesApk",
66}
67
68android_test {
69    name: "AdExtServicesApkUINotificationTests",
70    srcs: [
71        "src/**/*.java",
72        ":adservicesapk-filegroup",
73    ],
74    certificate: "platform",
75    privileged: true,
76    defaults: ["modules-utils-testable-device-config-defaults"],
77    sdk_version: "module_current",
78    min_sdk_version: "31",
79    max_sdk_version: "32",
80    compile_multilib: "both",
81    static_libs: [
82        "compatibility-device-util-axt",
83        "adservices-service-core",
84        "adservices-assets",
85        "adservices-test-utility",
86        "adservices-ui-test-utility",
87        "androidx.fragment_fragment",
88        "androidx.test.espresso.contrib",
89        "androidx.test.ext.junit",
90        "androidx.test.rules",
91        "mockito-target-extended-minus-junit4",
92        "androidx.room_room-runtime",
93        "androidx.room_room-testing",
94        "truth",
95        "SettingsLibActionBarShadow",
96        "SettingsLibSettingsTheme",
97        "SettingsLibCollapsingToolbarBaseActivity",
98        "SettingsLibMainSwitchPreference",
99        "androidx.test.uiautomator_uiautomator",
100        "adservices-clients",
101        "adservices-ui-cts-root-test-lib",
102    ],
103    libs: [
104        "android.test.base.stubs.system",
105        "android.test.mock.stubs",
106        "android.ext.adservices",
107        "framework-annotations-lib",
108    ],
109    test_suites: [
110        "general-tests",
111        "mts-extservices",
112    ],
113    test_config: "AndroidTest.ExtServices.xml",
114    manifest: "AndroidManifestExtServices.xml",
115    data: [
116        ":com.example.adservices.samples.ui.consenttestapp",
117        ":com.example.adservices.samples.ui.sampletestapp",
118    ],
119    instrumentation_for: "ExtServices-sminus",
120}
121