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.
14
15package {
16    default_team: "trendy_team_rubidium_sdk_runtime",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_test {
21    name: "SdkSandboxInprocessTests",
22
23    target_sdk_version: "Tiramisu",
24    min_sdk_version: "Tiramisu",
25
26    srcs: [
27        "src/**/inprocess/*.java",
28    ],
29
30    libs: [
31        "android.test.base.stubs.system",
32        "android.test.runner.stubs.system",
33    ],
34    static_libs: [
35        "androidx.core_core",
36        "androidx.test.rules",
37        "androidx.test.ext.truth",
38        "androidx.test.ext.junit",
39        "SdkSandboxTestUtils",
40        "sdk_sandbox_flags_lib",
41        "truth",
42    ],
43    jarjar_rules: ":test-service-jarjar-rules",
44    test_suites: ["general-tests"],
45    test_options: {
46        extra_test_configs: ["AndroidTest_SdkInSandbox.xml"],
47    },
48}
49
50android_test {
51    name: "SdkSandboxNextTests",
52
53    manifest: "AndroidManifest_Next.xml",
54    test_config: "AndroidTest_Next.xml",
55
56    target_sdk_version: "34",
57    min_sdk_version: "34",
58
59    srcs: [
60        "src/**/next/*.java",
61    ],
62
63    libs: [
64        "android.test.base.stubs.system",
65        "android.test.runner.stubs.system",
66    ],
67    static_libs: [
68        "androidx.core_core",
69        "androidx.test.rules",
70        "androidx.test.ext.truth",
71        "androidx.test.ext.junit",
72        "truth",
73        "SdkSandboxTestUtils",
74    ],
75    jarjar_rules: ":test-service-jarjar-rules",
76    test_suites: ["general-tests"],
77}
78
79android_test {
80    name: "SdkSandboxAuditTests",
81
82    manifest: "AndroidManifest_Audit.xml",
83    test_config: "AndroidTest_Audit.xml",
84
85    target_sdk_version: "34",
86    min_sdk_version: "34",
87
88    srcs: [
89        "src/**/audit/*.java",
90    ],
91
92    libs: [
93        "android.test.base.stubs.system",
94        "android.test.runner.stubs.system",
95    ],
96    static_libs: [
97        "androidx.core_core",
98        "androidx.test.rules",
99        "androidx.test.ext.truth",
100        "androidx.test.ext.junit",
101        "truth",
102        "SdkSandboxTestUtils",
103    ],
104    test_suites: ["general-tests"],
105    jarjar_rules: ":test-service-jarjar-rules",
106}
107