blob: 9ed26ff89eab2b46e6a4c9bc16ecea3c12fd0f81 [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
Bob Badour390b27e2021-03-19 04:22:23 -070019package {
20 // See: http://go/android-license-faq
21 // A large-scale-change added 'default_applicable_licenses' to import
22 // all of the 'license_kinds' from "packages_apps_Launcher3_license"
23 // to get the below license kinds:
24 // SPDX-license-identifier-Apache-2.0
25 default_applicable_licenses: ["packages_apps_Launcher3_license"],
26}
27
Sunny Goyalf5c42ea2021-03-12 16:00:40 -080028filegroup {
29 name: "launcher3-robolectric-resources",
30 path: "resources",
31 srcs: ["resources/*"],
32}
33
34filegroup {
35 name: "launcher3-robolectric-src",
36 srcs: ["src/**/*.java"],
37}
38
Hyunyoung Song5a007fe2021-02-25 00:58:05 -080039android_robolectric_test {
40 name: "LauncherRoboTests",
41 srcs: [
Sunny Goyalf5c42ea2021-03-12 16:00:40 -080042 ":launcher3-robolectric-src",
43 ":launcher3-test-src-common",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -080044 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -080045 java_resources: [":launcher3-robolectric-resources"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -080046 static_libs: [
47 "truth-prebuilt",
Brian Isganitis890d8d52021-05-25 00:07:53 -040048 "androidx.test.espresso.contrib",
49 "androidx.test.espresso.core",
50 "androidx.test.espresso.intents",
51 "androidx.test.ext.junit",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -080052 "androidx.test.runner",
53 "androidx.test.rules",
54 "mockito-robolectric-prebuilt",
Brian Isganitis890d8d52021-05-25 00:07:53 -040055 "SystemUISharedLib",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -080056 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -080057 robolectric_prebuilt_version: "4.5.1",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -080058 instrumentation_for: "Launcher3",
59
60 test_options: {
61 timeout: 36000,
62 },
63}