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_test { 26 name: "WMShellUnitTests", 27 defaults: [ 28 // For ExtendedMockito dependencies. 29 "modules-utils-testable-device-config-defaults", 30 ], 31 srcs: [ 32 "**/*.java", 33 "**/*.kt", 34 ], 35 resource_dirs: [ 36 "res", 37 ], 38 39 static_libs: [ 40 "WindowManager-Shell", 41 "junit", 42 "flag-junit", 43 "androidx.test.runner", 44 "androidx.test.rules", 45 "androidx.test.ext.junit", 46 "androidx.dynamicanimation_dynamicanimation", 47 "dagger2", 48 "frameworks-base-testutils", 49 "kotlinx-coroutines-android", 50 "kotlinx-coroutines-core", 51 "mockito-kotlin2", 52 "mockito-target-extended-minus-junit4", 53 "truth", 54 "testables", 55 "platform-test-annotations", 56 "servicestests-utils", 57 "com_android_wm_shell_flags_lib", 58 "guava-android-testlib", 59 "com.android.window.flags.window-aconfig-java", 60 "platform-test-annotations", 61 ], 62 63 libs: [ 64 "android.test.mock", 65 "android.test.base", 66 "android.test.runner", 67 ], 68 69 jni_libs: [ 70 "libdexmakerjvmtiagent", 71 "libstaticjvmtiagent", 72 ], 73 74 kotlincflags: ["-Xjvm-default=all"], 75 76 plugins: ["dagger2-compiler"], 77 78 optimize: { 79 enabled: false, 80 }, 81 82 test_suites: ["device-tests"], 83 84 platform_apis: true, 85 certificate: "platform", 86 87 aaptflags: [ 88 "--extra-packages", 89 "com.android.wm.shell.tests", 90 ], 91} 92