• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15//############################################
16// Nearby Robolectric test target. #
17//############################################
18
19package {
20    default_applicable_licenses: ["Android-Apache-2.0"],
21}
22
23android_robolectric_test {
24    name: "NearbyRoboTests",
25    srcs: ["src/**/*.java"],
26    instrumentation_for: "NearbyFakeTestApp",
27    java_resource_dirs: ["config"],
28
29    libs: [
30        "android-support-annotations",
31        "services.core",
32    ],
33
34    static_libs: [
35        "androidx.test.core",
36        "androidx.core_core",
37        "androidx.annotation_annotation",
38        "androidx.legacy_legacy-support-v4",
39        "androidx.recyclerview_recyclerview",
40        "androidx.preference_preference",
41        "androidx.appcompat_appcompat",
42        "androidx.lifecycle_lifecycle-runtime",
43        "androidx.mediarouter_mediarouter-nodeps",
44        "error_prone_annotations",
45        "mockito-robolectric-prebuilt",
46        "service-nearby-pre-jarjar",
47        "truth-prebuilt",
48        "robolectric_android-all-stub",
49        "Robolectric_all-target",
50    ],
51
52    test_options: {
53        // timeout in seconds.
54        timeout: 36000,
55    },
56}
57