Eric Lin | b160c68 | 2022-01-13 15:06:54 +0000 | [diff] [blame] | 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 | |
Chun Zhang | 596d3d8 | 2022-01-09 11:21:28 -0800 | [diff] [blame] | 15 | //############################################ |
| 16 | // Nearby Robolectric test target. # |
| 17 | //############################################ |
| 18 | |
| 19 | package { |
| 20 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 21 | } |
| 22 | |
Eric Lin | b160c68 | 2022-01-13 15:06:54 +0000 | [diff] [blame] | 23 | android_robolectric_test { |
| 24 | name: "NearbyRoboTests", |
Chun Zhang | 596d3d8 | 2022-01-09 11:21:28 -0800 | [diff] [blame] | 25 | srcs: ["src/**/*.java"], |
Eric Lin | b160c68 | 2022-01-13 15:06:54 +0000 | [diff] [blame] | 26 | instrumentation_for: "NearbyFakeTestApp", |
Chun Zhang | 596d3d8 | 2022-01-09 11:21:28 -0800 | [diff] [blame] | 27 | java_resource_dirs: ["config"], |
| 28 | |
Chun Zhang | 596d3d8 | 2022-01-09 11:21:28 -0800 | [diff] [blame] | 29 | libs: [ |
| 30 | "android-support-annotations", |
| 31 | "services.core", |
| 32 | ], |
| 33 | |
Eric Lin | b160c68 | 2022-01-13 15:06:54 +0000 | [diff] [blame] | 34 | static_libs: [ |
Chun Zhang | 596d3d8 | 2022-01-09 11:21:28 -0800 | [diff] [blame] | 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", |
| 47 | "truth-prebuilt", |
| 48 | "robolectric_android-all-stub", |
| 49 | "Robolectric_all-target", |
| 50 | ], |
Chun Zhang | 596d3d8 | 2022-01-09 11:21:28 -0800 | [diff] [blame] | 51 | |
Chun Zhang | 596d3d8 | 2022-01-09 11:21:28 -0800 | [diff] [blame] | 52 | test_options: { |
| 53 | // timeout in seconds. |
| 54 | timeout: 36000, |
| 55 | }, |
| 56 | } |