• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        "common-ondevicepersonalization-protos",
57        "adservices-shared-datastore", // For proto data store.
58    ],
59    manifest: "AndroidManifest.xml",
60    plugins: ["auto_value_plugin"],
61    sdk_version: "module_current",
62    target_sdk_version: "current",
63    min_sdk_version: "Tiramisu",
64    certificate: "platform",
65    compile_multilib: "both",
66    test_config: "AndroidTest.xml",
67    test_suites: [
68        "general-tests",
69        "mts-ondevicepersonalization",
70    ],
71    jni_libs: [
72        "libdexmakerjvmtiagent",
73        "libstaticjvmtiagent",
74        "libfcp_cpp_dep_jni",
75        "libfcp_hpke_jni",
76    ],
77}
78