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. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19android_test { 20 name: "OnDevicePersonalizationManagingServicesTests", 21 defaults: [ 22 "modules-utils-testable-device-config-defaults", 23 ], 24 srcs: [ 25 "src/**/*.java", 26 "src/**/*.kt", 27 ":ondevicepersonalization-sources", 28 ":ondevicepersonalization-fbs", 29 ":chronicle-sources", 30 ":statslog-ondevicepersonalization-java-gen", 31 ":common-ondevicepersonalization-sources", 32 ], 33 libs: [ 34 "android.test.base.stubs.system", 35 "android.test.runner.stubs.system", 36 "framework-adservices.stubs.module_lib", // For user consent 37 "framework-annotations-lib", 38 "framework-configinfrastructure.stubs.module_lib", 39 "framework-connectivity.stubs.module_lib", 40 "framework-location.stubs.module_lib", 41 "kotlin-annotations", 42 "truth", 43 "framework-ondevicepersonalization.impl", 44 "framework-statsd.stubs.module_lib", // For WW logging 45 ], 46 static_libs: [ 47 "androidx.test.ext.junit", 48 "androidx.test.ext.truth", 49 "androidx.test.rules", 50 "federated-compute-java-proto-lite", 51 "guava", 52 "mockito-target-extended-minus-junit4", 53 "kotlin-stdlib", 54 "kotlin-test", 55 "kotlinx-coroutines-android", 56 "mobile_data_downloader_lib", 57 "modules-utils-build", 58 "ondevicepersonalization-protos", 59 "ondevicepersonalization-plugin-lib", 60 "apache-velocity-engine-core", 61 "flatbuffers-java", 62 "owasp-java-encoder", 63 "compatibility-device-util-axt", 64 "tensorflowlite_java", 65 "adservices-shared-spe", 66 "ondevicepersonalization-testing-utils", 67 ], 68 sdk_version: "module_current", 69 target_sdk_version: "current", 70 min_sdk_version: "Tiramisu", 71 compile_multilib: "both", 72 test_suites: [ 73 "general-tests", 74 "mts-ondevicepersonalization", 75 ], 76 manifest: "AndroidManifest.xml", 77 test_config: "AndroidTest.xml", 78 // mockito-target-inline dependency 79 jni_libs: [ 80 "libdexmakerjvmtiagent", 81 "libstaticjvmtiagent", 82 "libfcp_cpp_dep_jni", 83 ], 84} 85