Liran Binyamin | b4f57f8 | 2024-05-23 13:34:30 -0400 | [diff] [blame] | 1 | // 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 | |
| 15 | package { |
| 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 Binyamin | bfb9af4 | 2024-07-03 10:31:56 -0400 | [diff] [blame] | 25 | android_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 | |
| 38 | android_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 Binyamin | b4f57f8 | 2024-05-23 13:34:30 -0400 | [diff] [blame] | 59 | android_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 Kang | c2d9c9a | 2024-09-13 04:37:59 +0000 | [diff] [blame^] | 75 | "android.test.base.stubs.system", |
| 76 | "android.test.runner.stubs.system", |
Liran Binyamin | b4f57f8 | 2024-05-23 13:34:30 -0400 | [diff] [blame] | 77 | ], |
| 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 | } |