blob: 61c09f2c396b30fb4b1e605d6a5e2f5baa6a7472 [file] [log] [blame]
Liran Binyaminb4f57f82024-05-23 13:34:30 -04001// Copyright (C) 2024 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
Liran Binyaminbfb9af42024-07-03 10:31:56 -040025android_app {
26 name: "WMShellRobolectricScreenshotTestApp",
27 platform_apis: true,
28 certificate: "platform",
29 static_libs: [
30 "WindowManager-Shell",
31 "platform-screenshot-diff-core",
Mady Mellor3c6b6592024-10-24 09:49:18 -070032 "ScreenshotComposeUtilsLib", // ComposableScreenshotTestRule & Theme.PlatformUi.Screenshot
33 "SystemUI-res", // Theme.SystemUI (dragged in by ScreenshotComposeUtilsLib)
Liran Binyaminbfb9af42024-07-03 10:31:56 -040034 ],
35 asset_dirs: ["goldens/robolectric"],
36 manifest: "AndroidManifestRobolectric.xml",
37 use_resource_processor: true,
38}
39
40android_robolectric_test {
41 name: "WMShellRobolectricScreenshotTests",
42 instrumentation_for: "WMShellRobolectricScreenshotTestApp",
43 upstream: true,
44 java_resource_dirs: [
45 "robolectric/config",
46 ],
47 srcs: [
48 "src/**/*.kt",
49 ],
50 static_libs: [
51 "junit",
52 "androidx.test.runner",
53 "androidx.test.rules",
54 "androidx.test.ext.junit",
55 "truth",
56 "platform-parametric-runner-lib",
57 ],
58 auto_gen_config: true,
59}
60
Liran Binyaminb4f57f82024-05-23 13:34:30 -040061android_test {
62 name: "WMShellMultivalentScreenshotTestsOnDevice",
63 srcs: [
64 "src/**/*.kt",
65 ],
66 static_libs: [
67 "WindowManager-Shell",
Mady Mellor3c6b6592024-10-24 09:49:18 -070068 "ScreenshotComposeUtilsLib", // ComposableScreenshotTestRule & Theme.PlatformUi.Screenshot
69 "SystemUI-res", // Theme.SystemUI (dragged in by ScreenshotComposeUtilsLib)
Liran Binyaminb4f57f82024-05-23 13:34:30 -040070 "junit",
71 "androidx.test.runner",
72 "androidx.test.rules",
73 "androidx.test.ext.junit",
74 "truth",
75 "platform-parametric-runner-lib",
76 "platform-screenshot-diff-core",
77 ],
78 libs: [
Jihoon Kangc2d9c9a2024-09-13 04:37:59 +000079 "android.test.base.stubs.system",
80 "android.test.runner.stubs.system",
Liran Binyaminb4f57f82024-05-23 13:34:30 -040081 ],
82 jni_libs: [
83 "libdexmakerjvmtiagent",
84 "libstaticjvmtiagent",
85 ],
86 kotlincflags: ["-Xjvm-default=all"],
87 optimize: {
88 enabled: false,
89 },
90 test_suites: ["device-tests"],
91 platform_apis: true,
92 certificate: "platform",
93 aaptflags: [
94 "--extra-packages",
95 "com.android.wm.shell",
96 ],
97 manifest: "AndroidManifest.xml",
98 asset_dirs: ["goldens/onDevice"],
99}