Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfb9af45 authored by Liran Binyamin's avatar Liran Binyamin
Browse files

Add robolectric screenshot tests for bubble edu

Flag: TEST_ONLY
Bug: 342417102
Test: atest WMShellRobolectricScreenshotTests
Change-Id: Ibca9ffe90f49a17e76e4bd61a50becfb79e25237
parent d7e6d1b0
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
@@ -22,6 +22,40 @@ package {
    default_team: "trendy_team_multitasking_windowing",
}

android_app {
    name: "WMShellRobolectricScreenshotTestApp",
    platform_apis: true,
    certificate: "platform",
    static_libs: [
        "WindowManager-Shell",
        "platform-screenshot-diff-core",
    ],
    asset_dirs: ["goldens/robolectric"],
    manifest: "AndroidManifestRobolectric.xml",
    use_resource_processor: true,
}

android_robolectric_test {
    name: "WMShellRobolectricScreenshotTests",
    instrumentation_for: "WMShellRobolectricScreenshotTestApp",
    upstream: true,
    java_resource_dirs: [
        "robolectric/config",
    ],
    srcs: [
        "src/**/*.kt",
    ],
    static_libs: [
        "junit",
        "androidx.test.runner",
        "androidx.test.rules",
        "androidx.test.ext.junit",
        "truth",
        "platform-parametric-runner-lib",
    ],
    auto_gen_config: true,
}

android_test {
    name: "WMShellMultivalentScreenshotTestsOnDevice",
    srcs: [
+0 −1
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.wm.shell.multivalentscreenshot">
    <application android:debuggable="true" android:supportsRtl="true">
        <uses-library android:name="android.test.runner" />
        <activity
            android:name="platform.test.screenshot.ScreenshotActivity"
            android:exported="true">
+1 −0
Original line number Diff line number Diff line
sdk=NEWEST_SDK
graphicsMode=NATIVE