blob: b6db6d93499d88d03048e504656b4882b3a20784 [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",
32 ],
33 asset_dirs: ["goldens/robolectric"],
34 manifest: "AndroidManifestRobolectric.xml",
35 use_resource_processor: true,
36}
37
38android_robolectric_test {
39 name: "WMShellRobolectricScreenshotTests",
40 instrumentation_for: "WMShellRobolectricScreenshotTestApp",
41 upstream: true,
42 java_resource_dirs: [
43 "robolectric/config",
44 ],
45 srcs: [
46 "src/**/*.kt",
47 ],
48 static_libs: [
49 "junit",
50 "androidx.test.runner",
51 "androidx.test.rules",
52 "androidx.test.ext.junit",
53 "truth",
54 "platform-parametric-runner-lib",
55 ],
56 auto_gen_config: true,
57}
58
Liran Binyaminb4f57f82024-05-23 13:34:30 -040059android_test {
60 name: "WMShellMultivalentScreenshotTestsOnDevice",
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 "truth",
71 "platform-parametric-runner-lib",
72 "platform-screenshot-diff-core",
73 ],
74 libs: [
Jihoon Kangc2d9c9a2024-09-13 04:37:59 +000075 "android.test.base.stubs.system",
76 "android.test.runner.stubs.system",
Liran Binyaminb4f57f82024-05-23 13:34:30 -040077 ],
78 jni_libs: [
79 "libdexmakerjvmtiagent",
80 "libstaticjvmtiagent",
81 ],
82 kotlincflags: ["-Xjvm-default=all"],
83 optimize: {
84 enabled: false,
85 },
86 test_suites: ["device-tests"],
87 platform_apis: true,
88 certificate: "platform",
89 aaptflags: [
90 "--extra-packages",
91 "com.android.wm.shell",
92 ],
93 manifest: "AndroidManifest.xml",
94 asset_dirs: ["goldens/onDevice"],
95}