blob: 1686d0d54dc41d9f4e9f9dcffa881a168ec7b0bc [file] [log] [blame]
Liran Binyamin425e0ea2024-02-28 17:30:33 -05001// 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 upstream: true,
39 java_resource_dirs: [
40 "robolectric/config",
41 ],
42 srcs: [
43 "src/**/*.kt",
44 ],
45 // TODO(b/323188766): Include BubbleStackViewTest once the robolectric issue is fixed.
46 exclude_srcs: ["src/com/android/wm/shell/bubbles/BubbleStackViewTest.kt"],
47 static_libs: [
48 "junit",
49 "androidx.test.runner",
50 "androidx.test.rules",
51 "androidx.test.ext.junit",
52 "mockito-robolectric-prebuilt",
53 "mockito-kotlin2",
54 "truth",
55 ],
56 auto_gen_config: true,
57}
58
59android_test {
60 name: "WMShellMultivalentTestsOnDevice",
61 srcs: [
62 "src/**/*.kt",
63 ],
64 static_libs: [
65 "WindowManager-Shell",
66 "junit",
67 "androidx.test.runner",
68 "androidx.test.rules",
69 "androidx.test.ext.junit",
70 "frameworks-base-testutils",
71 "mockito-kotlin2",
72 "mockito-target-extended-minus-junit4",
73 "truth",
74 "platform-test-annotations",
75 "platform-test-rules",
76 ],
77 libs: [
78 "android.test.base",
79 "android.test.runner",
80 ],
81 jni_libs: [
82 "libdexmakerjvmtiagent",
83 "libstaticjvmtiagent",
84 ],
85 kotlincflags: ["-Xjvm-default=all"],
86 optimize: {
87 enabled: false,
88 },
89 test_suites: ["device-tests"],
90 platform_apis: true,
91 certificate: "platform",
92 aaptflags: [
93 "--extra-packages",
94 "com.android.wm.shell",
95 ],
96 manifest: "AndroidManifest.xml",
97}