Chun Zhang | 596d3d8 | 2022-01-09 11:21:28 -0800 | [diff] [blame^] | 1 | //############################################ |
| 2 | // Nearby Robolectric test target. # |
| 3 | //############################################ |
| 4 | |
| 5 | package { |
| 6 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 7 | } |
| 8 | |
| 9 | android_app { |
| 10 | name: "FastPairTest", |
| 11 | |
| 12 | srcs: ["src/**/*.java"], |
| 13 | java_resource_dirs: ["config"], |
| 14 | |
| 15 | platform_apis: true, |
| 16 | optimize: { |
| 17 | enabled: false, |
| 18 | }, |
| 19 | |
| 20 | libs: [ |
| 21 | "android-support-annotations", |
| 22 | "services.core", |
| 23 | ], |
| 24 | |
| 25 | static_libs: [ |
| 26 | "androidx.test.core", |
| 27 | "androidx.core_core", |
| 28 | "androidx.annotation_annotation", |
| 29 | "androidx.legacy_legacy-support-v4", |
| 30 | "androidx.recyclerview_recyclerview", |
| 31 | "androidx.preference_preference", |
| 32 | "androidx.appcompat_appcompat", |
| 33 | "androidx.lifecycle_lifecycle-runtime", |
| 34 | "androidx.mediarouter_mediarouter-nodeps", |
| 35 | "error_prone_annotations", |
| 36 | "mockito-robolectric-prebuilt", |
| 37 | "service-nearby", |
| 38 | "truth-prebuilt", |
| 39 | "robolectric_android-all-stub", |
| 40 | "Robolectric_all-target", |
| 41 | ], |
| 42 | } |
| 43 | |
| 44 | android_robolectric_test { |
| 45 | name: "FastPairRoboTests", |
| 46 | srcs: ["src/**/*.java"], |
| 47 | instrumentation_for: "FastPairTest", |
| 48 | test_options: { |
| 49 | // timeout in seconds. |
| 50 | timeout: 36000, |
| 51 | }, |
| 52 | } |