1// Copyright (C) 2021 The Android 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
15// Make test APK
16// ============================================================
17
18package {
19    default_team: "trendy_team_fwk_uwb",
20    default_applicable_licenses: ["Android-Apache-2.0"],
21}
22
23filegroup {
24    name: "framework-uwb-test-util-srcs",
25    srcs: [
26        "src/android/uwb/UwbTestUtils.java",
27    ],
28}
29
30android_test {
31    name: "FrameworkUwbTests",
32
33    defaults: ["framework-uwb-test-defaults"],
34
35    min_sdk_version: "Tiramisu",
36    target_sdk_version: "Tiramisu",
37
38    srcs: ["**/*.java"],
39
40    static_libs: [
41        "androidx.test.core",
42        "androidx.test.ext.junit",
43        "androidx.test.rules",
44        "frameworks-base-testutils",
45        "guava",
46        "mockito-target-minus-junit4",
47        "truth",
48        "modules-utils-build",
49    ],
50
51    libs: [
52        "android.test.runner",
53        "android.test.base",
54    ],
55
56    test_suites: [
57        "general-tests",
58        "mts-uwb",
59    ],
60
61    // static libs used by both framework-uwb & FrameworksUwbApiTests. Need to rename test usage
62    // to a different package name to prevent conflict with the copy in production code.
63    jarjar_rules: "test-jarjar-rules.txt",
64}
65