blob: 32595617b380527478b660dbf70b748992d312e5 [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",
Thales Limaa1012902022-01-13 17:58:42 +000026 srcs: [
27 "src/**/*.java",
28 "src/**/*.kt"
29 ],
Sunny Goyal4af8cf92021-07-29 15:48:24 -070030}
31
32// Source code used for oop test helpers
33filegroup {
34 name: "launcher-oop-tests-src",
35 srcs: [
36 "src/com/android/launcher3/ui/AbstractLauncherUiTest.java",
Sunny Goyal4af8cf92021-07-29 15:48:24 -070037 "src/com/android/launcher3/ui/PortraitLandscapeRunner.java",
My Name5b59e752021-12-15 20:54:45 -050038 "src/com/android/launcher3/util/TestUtil.java",
Sunny Goyal4af8cf92021-07-29 15:48:24 -070039 "src/com/android/launcher3/util/Wait.java",
40 "src/com/android/launcher3/util/WidgetUtils.java",
41 "src/com/android/launcher3/util/rule/FailureWatcher.java",
42 "src/com/android/launcher3/util/rule/LauncherActivityRule.java",
43 "src/com/android/launcher3/util/rule/ScreenRecordRule.java",
44 "src/com/android/launcher3/util/rule/ShellCommandRule.java",
45 "src/com/android/launcher3/util/rule/SimpleActivityRule.java",
46 "src/com/android/launcher3/util/rule/TestStabilityRule.java",
47 "src/com/android/launcher3/ui/TaplTestsLauncher3.java",
48 "src/com/android/launcher3/testcomponent/BaseTestingActivity.java",
Pat Manning30c28a02022-01-31 16:01:51 +000049 "src/com/android/launcher3/testcomponent/OtherBaseTestingActivity.java",
Sunny Goyal4af8cf92021-07-29 15:48:24 -070050 "src/com/android/launcher3/testcomponent/CustomShortcutConfigActivity.java",
51 "src/com/android/launcher3/testcomponent/TestCommandReceiver.java",
52 "src/com/android/launcher3/testcomponent/TestLauncherActivity.java",
53 ],
54}
55
56// Library with all the dependencies for building quickstep
57android_library {
58 name: "Launcher3TestLib",
59 srcs: [ ],
60 resource_dirs: ["res"],
61 static_libs: [
62 "launcher-aosp-tapl",
Sunny Goyal177785e2021-07-29 15:48:24 -070063 "androidx.test.core",
Sunny Goyal4af8cf92021-07-29 15:48:24 -070064 "androidx.test.runner",
65 "androidx.test.rules",
66 "androidx.test.ext.junit",
67 "androidx.test.espresso.core",
68 "androidx.test.espresso.contrib",
69 "androidx.test.espresso.intents",
70 "androidx.test.uiautomator_uiautomator",
71 "mockito-target-inline-minus-junit4",
72 "launcher_log_protos_lite",
73 "truth-prebuilt"
74 ],
75 manifest: "AndroidManifest-common.xml",
76 platform_apis: true,
77}
78
My Name5b59e752021-12-15 20:54:45 -050079android_library {
80 name: "Launcher3TestResources",
81 resource_dirs: ["res"],
82}
83
Sunny Goyal4af8cf92021-07-29 15:48:24 -070084android_test {
85 name: "Launcher3Tests",
86 srcs: [
87 ":launcher-tests-src",
88 ],
89 static_libs: ["Launcher3TestLib"],
90 libs: [
91 "android.test.base",
92 "android.test.runner",
93 "android.test.mock",
94 ],
95 jni_libs: [
96 "libdexmakerjvmtiagent",
97 "libstaticjvmtiagent",
98 ],
99 use_embedded_native_libs: false,
100 compile_multilib: "both",
101 instrumentation_for: "Launcher3",
102 manifest: "AndroidManifest.xml",
103 platform_apis: true,
104 test_config: "Launcher3Tests.xml",
105 data: [":Launcher3"]
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800106}