blob: 50309b790216098348cececd515542f059c67f7b [file] [log] [blame]
Hyunyoung Song5a007fe2021-02-25 00:58:05 -08001// 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
Sunny Goyalf5c42ea2021-03-12 16:00:40 -080019filegroup {
20 name: "launcher3-robolectric-resources",
21 path: "resources",
22 srcs: ["resources/*"],
23}
24
25filegroup {
26 name: "launcher3-robolectric-src",
27 srcs: ["src/**/*.java"],
28}
29
Hyunyoung Song5a007fe2021-02-25 00:58:05 -080030android_robolectric_test {
31 name: "LauncherRoboTests",
32 srcs: [
Sunny Goyalf5c42ea2021-03-12 16:00:40 -080033 ":launcher3-robolectric-src",
34 ":launcher3-test-src-common",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -080035 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -080036 java_resources: [":launcher3-robolectric-resources"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -080037 static_libs: [
38 "truth-prebuilt",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -080039 "androidx.test.runner",
40 "androidx.test.rules",
41 "mockito-robolectric-prebuilt",
42 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -080043 robolectric_prebuilt_version: "4.5.1",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -080044 instrumentation_for: "Launcher3",
45
46 test_options: {
47 timeout: 36000,
48 },
49}
50