blob: 578de3676174b63b8d563bcdacc27c279c8bd436 [file] [log] [blame]
// 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: "AdServicesServiceCoreUnitTests",
srcs: [
"src/**/*.java",
],
defaults: ["modules-utils-testable-device-config-defaults"],
sdk_version: "module_current",
// Currently this test module is failing, which results in low test coverage
// The reason is the target test coverage system runs on is different as what this test
// configures. Add below line to address the issue.
// See b/233124651 for details.
compile_multilib: "both",
min_sdk_version: "Tiramisu",
static_libs: [
"androidx.concurrent_concurrent-futures",
"androidx.test.rules",
"compatibility-device-util-axt",
"mockito-target-extended-minus-junit4",
"adservices-service-core",
"truth-prebuilt",
"ub-uiautomator",
"adservices-assets-lib",
"androidx.room_room-runtime",
"androidx.room_room-testing",
"adservices-test-fixtures",
"tensorflowlite_java",
],
libs: [
"android.test.base",
"android.test.mock.stubs",
"framework-adservices.impl",
],
test_suites: [
"general-tests",
"mts-adservices"
],
jni_libs: [
"libtensorflowlite_jni",
],
aaptflags: [
// avoid compression on lite and tflite files as the Interpreter
// can not load compressed flat buffer formats. (*appt compresses all
// assets into the apk by default)
// See https://elinux.org/Android_aapt for more detail.
"-0 .lite",
"-0 .tflite",
],
}