Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame^] | 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 | // |
| 16 | // Launcher Robolectric test target. |
| 17 | // |
| 18 | // "robolectric_android-all-stub", not needed, we write our own stubs |
| 19 | android_robolectric_test { |
| 20 | name: "LauncherRoboTests", |
| 21 | srcs: [ |
| 22 | "src/**/*.java", |
| 23 | ], |
| 24 | java_resource_dirs: [ |
| 25 | "resources", |
| 26 | "res", |
| 27 | "config", |
| 28 | ], |
| 29 | static_libs: [ |
| 30 | "truth-prebuilt", |
| 31 | "Launcher3TestCommon", |
| 32 | "androidx.test.runner", |
| 33 | "androidx.test.rules", |
| 34 | "mockito-robolectric-prebuilt", |
| 35 | ], |
| 36 | //robolectric_prebuilt_version: "4.4", |
| 37 | libs: [ |
| 38 | "platform-robolectric-4.4-prebuilt", |
| 39 | ], |
| 40 | instrumentation_for: "Launcher3", |
| 41 | |
| 42 | test_options: { |
| 43 | timeout: 36000, |
| 44 | }, |
| 45 | } |
| 46 | |