• 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: "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",
35        "android.test.runner",
36        "framework-adservices", // For user consent
37        "framework-annotations-lib",
38        "framework-configinfrastructure",
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        "mockito-target-extended-minus-junit4",
51        "kotlin-stdlib",
52        "kotlin-test",
53        "kotlinx-coroutines-android",
54        "mobile_data_downloader_lib",
55        "modules-utils-build",
56        "ondevicepersonalization-protos",
57        "ondevicepersonalization-plugin-lib",
58        "apache-velocity-engine-core",
59        "flatbuffers-java",
60        "owasp-java-encoder",
61        "compatibility-device-util-axt",
62        "tensorflowlite_java",
63        "adservices-shared-spe",
64    ],
65    sdk_version: "module_current",
66    target_sdk_version: "current",
67    min_sdk_version: "Tiramisu",
68    compile_multilib: "both",
69    test_suites: [
70        "general-tests",
71        "mts-ondevicepersonalization",
72    ],
73    manifest: "AndroidManifest.xml",
74    test_config: "AndroidTest.xml",
75    // mockito-target-inline dependency
76    jni_libs: [
77        "libdexmakerjvmtiagent",
78        "libstaticjvmtiagent",
79        "libfcp_cpp_dep_jni",
80    ],
81}
82