blob: 56c0107515cb8578aeda8541eb67b1c67c47e458 [file] [log] [blame]
Eric Linb160c682022-01-13 15:06:54 +00001// 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
Chun Zhang596d3d82022-01-09 11:21:28 -080015//############################################
16// Nearby Robolectric test target. #
17//############################################
18
19package {
20 default_applicable_licenses: ["Android-Apache-2.0"],
21}
22
Eric Linb160c682022-01-13 15:06:54 +000023android_robolectric_test {
24 name: "NearbyRoboTests",
Chun Zhang596d3d82022-01-09 11:21:28 -080025 srcs: ["src/**/*.java"],
Eric Linb160c682022-01-13 15:06:54 +000026 instrumentation_for: "NearbyFakeTestApp",
Chun Zhang596d3d82022-01-09 11:21:28 -080027 java_resource_dirs: ["config"],
28
Chun Zhang596d3d82022-01-09 11:21:28 -080029 libs: [
30 "android-support-annotations",
31 "services.core",
32 ],
33
Eric Linb160c682022-01-13 15:06:54 +000034 static_libs: [
Chun Zhang596d3d82022-01-09 11:21:28 -080035 "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",
Chun Zhang10794312022-03-07 21:50:31 -080046 "service-nearby-pre-jarjar",
Chun Zhang596d3d82022-01-09 11:21:28 -080047 "truth-prebuilt",
48 "robolectric_android-all-stub",
49 "Robolectric_all-target",
50 ],
Chun Zhang596d3d82022-01-09 11:21:28 -080051
Chun Zhang596d3d82022-01-09 11:21:28 -080052 test_options: {
53 // timeout in seconds.
54 timeout: 36000,
55 },
56}