93 lines
2.8 KiB
Plaintext
93 lines
2.8 KiB
Plaintext
// Copyright (C) 2022 The Android Open Source Project
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
android_test {
|
|
name: "AdServicesApkUnitTests",
|
|
srcs: [
|
|
"src/**/*.java",
|
|
":adservicesapk-filegroup",
|
|
],
|
|
certificate: "platform",
|
|
privileged: true,
|
|
defaults: ["modules-utils-testable-device-config-defaults"],
|
|
sdk_version: "module_current",
|
|
min_sdk_version: "Tiramisu",
|
|
static_libs: [
|
|
"adservices-service-core",
|
|
"adservices-assets",
|
|
"androidx.fragment_fragment",
|
|
"androidx.test.espresso.contrib",
|
|
"androidx.test.ext.junit",
|
|
"androidx.test.rules",
|
|
"compatibility-device-util-axt",
|
|
"mockito-target-extended-minus-junit4",
|
|
"truth-prebuilt",
|
|
"androidx.room_room-runtime",
|
|
],
|
|
libs: [
|
|
"android.test.base",
|
|
"android.test.mock.stubs",
|
|
"framework-adservices.impl",
|
|
],
|
|
required: ["privapp_allowlist_com.android.adservices.api.xml"],
|
|
test_suites: [
|
|
"general-tests",
|
|
"mts-adservices",
|
|
],
|
|
test_mainline_modules: ["com.google.android.adservices.apex"],
|
|
instrumentation_for: "AdServicesApk",
|
|
}
|
|
|
|
android_test {
|
|
name: "AdExtServicesApkUnitTests",
|
|
srcs: [
|
|
"src/**/*.java",
|
|
":adservicesapk-filegroup",
|
|
],
|
|
certificate: "platform",
|
|
privileged: true,
|
|
defaults: ["modules-utils-testable-device-config-defaults"],
|
|
sdk_version: "module_current",
|
|
min_sdk_version: "31",
|
|
max_sdk_version: "32",
|
|
static_libs: [
|
|
"adservices-assets",
|
|
"adservices-service-core",
|
|
"androidx.fragment_fragment",
|
|
"androidx.room_room-runtime",
|
|
"androidx.test.espresso.contrib",
|
|
"androidx.test.ext.junit",
|
|
"androidx.test.rules",
|
|
"compatibility-device-util-axt",
|
|
"mockito-target-extended-minus-junit4",
|
|
"truth-prebuilt",
|
|
],
|
|
libs: [
|
|
"android.ext.adservices",
|
|
"android.test.base",
|
|
"android.test.mock.stubs",
|
|
],
|
|
required: ["privapp_allowlist_com.android.adservices.api.xml"],
|
|
test_suites: [
|
|
"general-tests",
|
|
"mts-extservices",
|
|
],
|
|
test_mainline_modules: ["com.google.android.extservices.apex"],
|
|
instrumentation_for: "AdExtServicesApk",
|
|
test_config: "AndroidTest.ExtServices.xml",
|
|
}
|