1// Copyright (C) 2024 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 default_team: "trendy_team_android_rubidium", 18} 19 20android_test { 21 name: "CommonUtilsTests", 22 srcs: [ 23 "src/**/*.java", 24 ":common-ondevicepersonalization-sources", 25 ], 26 defaults: [ 27 // For ExtendedMockito dependencies. 28 "modules-utils-testable-device-config-defaults", 29 ], 30 libs: [ 31 "android.test.base.stubs.system", 32 "android.test.runner.stubs.system", 33 "auto_value_annotations", 34 "framework-annotations-lib", 35 "framework-ondevicepersonalization.impl", 36 "truth", 37 ], 38 static_libs: [ 39 "androidx.test.ext.junit", 40 "androidx.test.ext.truth", 41 "androidx.test.rules", 42 "federated-compute-java-proto-lite", 43 "flatbuffers-java", 44 "mockito-target-extended-minus-junit4", 45 "modules-utils-build", 46 "modules-utils-preconditions", 47 "libprotobuf-java-lite", 48 ], 49 manifest: "AndroidManifest.xml", 50 plugins: ["auto_value_plugin"], 51 sdk_version: "module_current", 52 target_sdk_version: "current", 53 min_sdk_version: "Tiramisu", 54 certificate: "platform", 55 compile_multilib: "both", 56 test_config: "AndroidTest.xml", 57 test_suites: [ 58 "general-tests", 59 "mts-ondevicepersonalization", 60 ], 61 jni_libs: [ 62 "libdexmakerjvmtiagent", 63 "libstaticjvmtiagent", 64 "libfcp_cpp_dep_jni", 65 "libfcp_hpke_jni", 66 ], 67} 68