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