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. 14package { 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 23// Source code used for test 24filegroup { 25 name: "launcher-tests-src", 26 srcs: ["src/**/*.java"], 27} 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", 34 "src/com/android/launcher3/ui/PortraitLandscapeRunner.java", 35 "src/com/android/launcher3/util/Wait.java", 36 "src/com/android/launcher3/util/WidgetUtils.java", 37 "src/com/android/launcher3/util/rule/FailureWatcher.java", 38 "src/com/android/launcher3/util/rule/LauncherActivityRule.java", 39 "src/com/android/launcher3/util/rule/ScreenRecordRule.java", 40 "src/com/android/launcher3/util/rule/ShellCommandRule.java", 41 "src/com/android/launcher3/util/rule/SimpleActivityRule.java", 42 "src/com/android/launcher3/util/rule/TestStabilityRule.java", 43 "src/com/android/launcher3/ui/TaplTestsLauncher3.java", 44 "src/com/android/launcher3/testcomponent/BaseTestingActivity.java", 45 "src/com/android/launcher3/testcomponent/CustomShortcutConfigActivity.java", 46 "src/com/android/launcher3/testcomponent/TestCommandReceiver.java", 47 "src/com/android/launcher3/testcomponent/TestLauncherActivity.java", 48 ], 49} 50 51// Library with all the dependencies for building quickstep 52android_library { 53 name: "Launcher3TestLib", 54 srcs: [ ], 55 resource_dirs: ["res"], 56 static_libs: [ 57 "launcher-aosp-tapl", 58 "androidx.test.core", 59 "androidx.test.runner", 60 "androidx.test.rules", 61 "androidx.test.ext.junit", 62 "androidx.test.espresso.core", 63 "androidx.test.espresso.contrib", 64 "androidx.test.espresso.intents", 65 "androidx.test.uiautomator_uiautomator", 66 "mockito-target-inline-minus-junit4", 67 "launcher_log_protos_lite", 68 "truth-prebuilt" 69 ], 70 manifest: "AndroidManifest-common.xml", 71 platform_apis: true, 72} 73 74android_test { 75 name: "Launcher3Tests", 76 srcs: [ 77 ":launcher-tests-src", 78 ], 79 static_libs: ["Launcher3TestLib"], 80 libs: [ 81 "android.test.base", 82 "android.test.runner", 83 "android.test.mock", 84 ], 85 jni_libs: [ 86 "libdexmakerjvmtiagent", 87 "libstaticjvmtiagent", 88 ], 89 use_embedded_native_libs: false, 90 compile_multilib: "both", 91 instrumentation_for: "Launcher3", 92 manifest: "AndroidManifest.xml", 93 platform_apis: true, 94 test_config: "Launcher3Tests.xml", 95 data: [":Launcher3"] 96} 97