1// Copyright (C) 2023 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.
14package {
15    default_team: "trendy_team_android_rubidium",
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19android_test {
20    name: "AdServicesCobaltUnitTests",
21    srcs: [
22        "src/**/*.java",
23    ],
24    defaults: ["adservices-extended-mockito-defaults"],
25    manifest: "AndroidManifest.xml",
26    test_config: "AndroidTest.xml",
27    static_libs: [
28        "adservices-service-core",
29        "adservices-test-utility",
30        "adservices-cobalt-schema",
31        "adservices-cobalt-testing",
32        "androidx.test.core",
33        "androidx.test.runner",
34        "androidx.room_room-runtime",
35        "androidx.room_room-testing",
36        "adservices-cobalt",
37        "apache-commons-math",
38        "truth",
39    ],
40    jni_libs: [
41        "libhpke_jni",
42    ],
43    libs: [
44        "android.test.base",
45        "android.test.runner",
46        "mockito",
47    ],
48    sdk_version: "test_current",
49    min_sdk_version: "Tiramisu",
50    test_suites: [
51        "general-tests",
52        "mts-adservices",
53    ],
54}
55
56android_test {
57    name: "AdExtServicesCobaltUnitTests",
58    srcs: [
59        "src/**/*.java",
60    ],
61    defaults: ["adservices-extended-mockito-defaults"],
62    manifest: "AndroidManifest.xml",
63    test_config: "AndroidTest.ExtServices.xml",
64    static_libs: [
65        "adservices-service-core",
66        "adservices-test-utility",
67        "adservices-cobalt-schema",
68        "adservices-cobalt-testing",
69        "androidx.test.core",
70        "androidx.test.runner",
71        "androidx.room_room-runtime",
72        "androidx.room_room-testing",
73        "adservices-cobalt",
74        "apache-commons-math",
75        "truth",
76    ],
77    jni_libs: [
78        "libhpke_jni",
79    ],
80    libs: [
81        "android.test.base",
82        "android.test.runner",
83        "mockito",
84    ],
85    sdk_version: "test_current",
86    min_sdk_version: "30",
87    max_sdk_version: "32",
88    test_suites: [
89        "general-tests",
90        "mts-extservices",
91    ],
92}
93