1// Copyright (C) 2019 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 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "frameworks_base_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["frameworks_base_license"], 22 default_team: "trendy_team_multitasking_windowing", 23} 24 25android_app { 26 name: "WindowManagerShellRobolectric", 27 platform_apis: true, 28 static_libs: [ 29 "WindowManager-Shell", 30 ], 31 manifest: "AndroidManifestRobolectric.xml", 32 use_resource_processor: true, 33} 34 35android_robolectric_test { 36 name: "WMShellRobolectricTests", 37 instrumentation_for: "WindowManagerShellRobolectric", 38 java_resource_dirs: [ 39 "robolectric/config", 40 ], 41 srcs: [ 42 "src/**/*.kt", 43 ], 44 // TODO(b/323188766): Include BubbleStackViewTest once the robolectric issue is fixed. 45 exclude_srcs: ["src/com/android/wm/shell/bubbles/BubbleStackViewTest.kt"], 46 static_libs: [ 47 "junit", 48 "androidx.core_core-animation-testing", 49 "androidx.test.runner", 50 "androidx.test.rules", 51 "androidx.test.ext.junit", 52 "mockito-robolectric-prebuilt", 53 "mockito-kotlin2", 54 "platform-parametric-runner-lib", 55 "truth", 56 "flag-junit-base", 57 "flag-junit", 58 "testables", 59 ], 60 auto_gen_config: true, 61} 62 63android_test { 64 name: "WMShellMultivalentTestsOnDevice", 65 srcs: [ 66 "src/**/*.kt", 67 ], 68 static_libs: [ 69 "WindowManager-Shell", 70 "junit", 71 "androidx.core_core-animation-testing", 72 "androidx.test.runner", 73 "androidx.test.rules", 74 "androidx.test.ext.junit", 75 "frameworks-base-testutils", 76 "mockito-kotlin2", 77 "mockito-target-extended-minus-junit4", 78 "platform-parametric-runner-lib", 79 "truth", 80 "platform-test-annotations", 81 "platform-test-rules", 82 "testables", 83 ], 84 libs: [ 85 "android.test.base.stubs.system", 86 "android.test.runner.stubs.system", 87 ], 88 jni_libs: [ 89 "libdexmakerjvmtiagent", 90 "libstaticjvmtiagent", 91 ], 92 kotlincflags: ["-Xjvm-default=all"], 93 optimize: { 94 enabled: false, 95 }, 96 test_suites: ["device-tests"], 97 platform_apis: true, 98 certificate: "platform", 99 aaptflags: [ 100 "--extra-packages", 101 "com.android.wm.shell", 102 ], 103 manifest: "AndroidManifest.xml", 104} 105