• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2021 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
15// ============================================================
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_test {
21    name: "ServiceBluetoothTests",
22    defaults: ["service-bluetooth-buildflags"],
23    srcs: [
24        "src/**/*.java",
25        "src/**/*.kt",
26    ],
27
28    static_libs: [
29        "androidx.test.rules",
30        "frameworks-base-testutils",
31        "kotlinx_coroutines_test",
32        "libprotobuf-java-nano",
33        "mockito-target-extended-minus-junit4",
34        "platform-compat-test-rules",
35        "platform-test-annotations",
36
37        // Linking source to test the working copy, not the on-device copy.
38        // Use 'pre-jarjar' so that we can reference symbols before renaming.
39        "service-bluetooth-pre-jarjar",
40        "truth",
41    ],
42
43    libs: [
44        "android.test.base",
45        "android.test.mock",
46        "android.test.runner",
47        "framework-bluetooth-pre-jarjar",
48        "service-bluetooth.change-ids",
49    ],
50    jni_libs: [
51        // these are needed for Extended Mockito
52        "libdexmakerjvmtiagent",
53        "libstaticjvmtiagent",
54    ],
55
56    test_suites: [
57        "general-tests",
58        "mts-bluetooth",
59    ],
60
61    min_sdk_version: "Tiramisu",
62}
63