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_team: "trendy_team_rubidium_sdk_runtime",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20filegroup {
21    name: "sdksandbox-test-utility-sideless-sources",
22    srcs: [
23        "side-less/**/*.java",
24    ],
25    path: "side-less",
26    visibility: [
27        ":__pkg__",
28    ],
29}
30
31java_library {
32    name: "SdkSandboxTestUtils",
33    srcs: [
34        "device-side/**/*.java",
35        ":sdksandbox-test-utility-sideless-sources",
36    ],
37    libs: [
38        "framework-sdksandbox.impl",
39    ],
40    static_libs: [
41        "service-sdksandbox.impl",
42        "adservices-test-utility",
43        "truth",
44        "androidx.test.ext.junit",
45        "SdkSandbox-java-lib",
46        "platform-screenshot-diff-core",
47        "modules-utils-build",
48    ],
49    visibility: [
50        "//packages/modules/AdServices:__subpackages__",
51    ],
52}
53
54java_library_host {
55    name: "SdkSandboxHostTestUtils",
56    srcs: [
57        "host-side/**/*.java",
58        ":sdksandbox-test-utility-sideless-sources",
59    ],
60    static_libs: [
61        "adservices-shared-hostside-testing",
62        "compatibility-host-util",
63        "modules-utils-build-testing",
64    ],
65    libs: ["tradefed"],
66}
67