• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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-prebuilt",
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    ],
55    test_suites: [
56        "general-tests",
57        "mts-adservices",
58    ],
59    required: ["privapp_allowlist_com.android.adservices.api.xml"],
60    test_mainline_modules: ["com.google.android.adservices.apex"],
61    data: [":com.example.adservices.samples.ui.consenttestapp"],
62    instrumentation_for: "AdServicesApk",
63}
64