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: "FederatedComputeServicesTests", 21 srcs: [ 22 "src/**/*.java", 23 ":federatedcompute-sources", 24 ":common-ondevicepersonalization-sources", 25 ":federatedcompute-fbs", 26 ":statslog-federatedcompute-java-gen", 27 ":fcp_native_wrapper", 28 ], 29 defaults: [ 30 // For ExtendedMockito dependencies. 31 "modules-utils-testable-device-config-defaults", 32 ], 33 libs: [ 34 "android.test.base.stubs.system", 35 "android.test.runner.stubs.system", 36 "auto_value_annotations", 37 "framework-annotations-lib", 38 "framework-ondevicepersonalization.impl", 39 "framework-configinfrastructure.stubs.module_lib", // For PH flags 40 "framework-statsd.stubs.module_lib", // For WW logging 41 "truth", 42 ], 43 static_libs: [ 44 "androidx.test.ext.junit", 45 "androidx.test.ext.truth", 46 "androidx.test.rules", 47 "federated-compute-java-proto-lite", 48 "flatbuffers-java", 49 "mockito-target-extended-minus-junit4", 50 "modules-utils-build", 51 "modules-utils-preconditions", 52 "libprotobuf-java-lite", 53 "tensorflow_core_proto_java_lite", 54 // Used for client error logging and background job logging. 55 "adservices-shared-spe", 56 ], 57 manifest: "AndroidManifest.xml", 58 plugins: ["auto_value_plugin"], 59 sdk_version: "module_current", 60 target_sdk_version: "current", 61 min_sdk_version: "Tiramisu", 62 certificate: "platform", 63 compile_multilib: "both", 64 test_config: "AndroidTest.xml", 65 test_suites: [ 66 "general-tests", 67 "mts-ondevicepersonalization", 68 ], 69 jni_libs: [ 70 "libdexmakerjvmtiagent", 71 "libstaticjvmtiagent", 72 "libfcp_cpp_dep_jni", 73 "libfcp_hpke_jni", 74 ], 75} 76