blob: 8def20fdc92e7d1d1a63daa8e5522dce5fd79593 [file] [log] [blame]
Sunny Goyalf5c42ea2021-03-12 16:00:40 -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.
Bob Badour390b27e2021-03-19 04:22:23 -070014package {
15 // See: http://go/android-license-faq
16 // A large-scale-change added 'default_applicable_licenses' to import
17 // all of the 'license_kinds' from "packages_apps_Launcher3_license"
18 // to get the below license kinds:
19 // SPDX-license-identifier-Apache-2.0
20 default_applicable_licenses: ["packages_apps_Launcher3_license"],
21}
22
Sunny Goyal4af8cf92021-07-29 15:48:24 -070023// Source code used for test
Sunny Goyalf5c42ea2021-03-12 16:00:40 -080024filegroup {
Sunny Goyal4af8cf92021-07-29 15:48:24 -070025 name: "launcher-tests-src",
Alex Chau4075f172021-11-25 11:54:26 +000026 srcs: ["src/**/*.java"],
Sunny Goyal4af8cf92021-07-29 15:48:24 -070027}
28
29// Source code used for oop test helpers
30filegroup {
31 name: "launcher-oop-tests-src",
32 srcs: [
33 "src/com/android/launcher3/ui/AbstractLauncherUiTest.java",
Sunny Goyal4af8cf92021-07-29 15:48:24 -070034 "src/com/android/launcher3/ui/PortraitLandscapeRunner.java",
My Name5b59e752021-12-15 20:54:45 -050035 "src/com/android/launcher3/util/TestUtil.java",
Sunny Goyal4af8cf92021-07-29 15:48:24 -070036 "src/com/android/launcher3/util/Wait.java",
37 "src/com/android/launcher3/util/WidgetUtils.java",
38 "src/com/android/launcher3/util/rule/FailureWatcher.java",
39 "src/com/android/launcher3/util/rule/LauncherActivityRule.java",
40 "src/com/android/launcher3/util/rule/ScreenRecordRule.java",
41 "src/com/android/launcher3/util/rule/ShellCommandRule.java",
42 "src/com/android/launcher3/util/rule/SimpleActivityRule.java",
43 "src/com/android/launcher3/util/rule/TestStabilityRule.java",
44 "src/com/android/launcher3/ui/TaplTestsLauncher3.java",
45 "src/com/android/launcher3/testcomponent/BaseTestingActivity.java",
46 "src/com/android/launcher3/testcomponent/CustomShortcutConfigActivity.java",
47 "src/com/android/launcher3/testcomponent/TestCommandReceiver.java",
48 "src/com/android/launcher3/testcomponent/TestLauncherActivity.java",
49 ],
50}
51
52// Library with all the dependencies for building quickstep
53android_library {
54 name: "Launcher3TestLib",
55 srcs: [ ],
56 resource_dirs: ["res"],
57 static_libs: [
58 "launcher-aosp-tapl",
Sunny Goyal177785e2021-07-29 15:48:24 -070059 "androidx.test.core",
Sunny Goyal4af8cf92021-07-29 15:48:24 -070060 "androidx.test.runner",
61 "androidx.test.rules",
62 "androidx.test.ext.junit",
63 "androidx.test.espresso.core",
64 "androidx.test.espresso.contrib",
65 "androidx.test.espresso.intents",
66 "androidx.test.uiautomator_uiautomator",
67 "mockito-target-inline-minus-junit4",
68 "launcher_log_protos_lite",
69 "truth-prebuilt"
70 ],
71 manifest: "AndroidManifest-common.xml",
72 platform_apis: true,
73}
74
My Name5b59e752021-12-15 20:54:45 -050075android_library {
76 name: "Launcher3TestResources",
77 resource_dirs: ["res"],
78}
79
Sunny Goyal4af8cf92021-07-29 15:48:24 -070080android_test {
81 name: "Launcher3Tests",
82 srcs: [
83 ":launcher-tests-src",
84 ],
85 static_libs: ["Launcher3TestLib"],
86 libs: [
87 "android.test.base",
88 "android.test.runner",
89 "android.test.mock",
90 ],
91 jni_libs: [
92 "libdexmakerjvmtiagent",
93 "libstaticjvmtiagent",
94 ],
95 use_embedded_native_libs: false,
96 compile_multilib: "both",
97 instrumentation_for: "Launcher3",
98 manifest: "AndroidManifest.xml",
99 platform_apis: true,
100 test_config: "Launcher3Tests.xml",
101 data: [":Launcher3"]
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800102}