Loading libs/WindowManager/Shell/tests/e2e/bubbles/flicker-explicit/src/com/android/wm/shell/flicker/bubbles/BubbleFlickerTrampolineTestBase.kt +15 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.tools.device.apphelpers.StandardAppHelper import android.tools.traces.parsers.toFlickerComponent import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.server.wm.flicker.testapp.ActivityOptions import org.junit.Test /** * The base class for Bubble flicker tests that bubble an app that launches via a trampoline task Loading @@ -28,6 +29,20 @@ abstract class BubbleFlickerTrampolineTestBase : BubbleFlickerTestBase() { override val testApp = runningApp /** Verifies the transition from the trampoline activity to the running activity. */ @Test fun trampolineActivityTransitions() { layersTraceSubject .skipUntilFirstAssertion() .isSplashScreenVisibleFor(trampolineApp) .then() // Check that trampoline starts the running app, running app can show a splash or not .isSplashScreenVisibleFor(runningApp, isOptional = true) .then() .isVisible(runningApp) .forAllEntries() } companion object { /** * Entry point for the app that is launching via trampoline Loading Loading
libs/WindowManager/Shell/tests/e2e/bubbles/flicker-explicit/src/com/android/wm/shell/flicker/bubbles/BubbleFlickerTrampolineTestBase.kt +15 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.tools.device.apphelpers.StandardAppHelper import android.tools.traces.parsers.toFlickerComponent import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.server.wm.flicker.testapp.ActivityOptions import org.junit.Test /** * The base class for Bubble flicker tests that bubble an app that launches via a trampoline task Loading @@ -28,6 +29,20 @@ abstract class BubbleFlickerTrampolineTestBase : BubbleFlickerTestBase() { override val testApp = runningApp /** Verifies the transition from the trampoline activity to the running activity. */ @Test fun trampolineActivityTransitions() { layersTraceSubject .skipUntilFirstAssertion() .isSplashScreenVisibleFor(trampolineApp) .then() // Check that trampoline starts the running app, running app can show a splash or not .isSplashScreenVisibleFor(runningApp, isOptional = true) .then() .isVisible(runningApp) .forAllEntries() } companion object { /** * Entry point for the app that is launching via trampoline Loading