From 403d94503706fcb266f5e315471a186c7c6684e5 Mon Sep 17 00:00:00 2001 From: Vadim Tryshev Date: Fri, 15 Sep 2023 19:08:17 -0700 Subject: [PATCH] Adding TestStabilityRule; otherwise @Stability annotation is ignored. Bug: 187761685 Test: presubmit Flag: N/A Change-Id: Ic13a183ff285eca02ed69a2e09822cc66655797b --- .../tests/src/com/android/quickstep/FallbackRecentsTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java index b4221b2804..23b5d30eb4 100644 --- a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java +++ b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java @@ -16,7 +16,9 @@ package com.android.quickstep; import static android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS; + import static androidx.test.InstrumentationRegistry.getInstrumentation; + import static com.android.launcher3.tapl.LauncherInstrumentation.WAIT_TIME_MS; import static com.android.launcher3.tapl.TestHelpers.getHomeIntentInPackage; import static com.android.launcher3.tapl.TestHelpers.getLauncherInMyProcess; @@ -32,6 +34,7 @@ import static com.android.launcher3.util.rule.ShellCommandRule.disableHeadsUpNot import static com.android.launcher3.util.rule.ShellCommandRule.getLauncherCommand; import static com.android.launcher3.util.rule.TestStabilityRule.LOCAL; import static com.android.launcher3.util.rule.TestStabilityRule.PLATFORM_POSTSUBMIT; + import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; @@ -139,6 +142,7 @@ public class FallbackRecentsTest { RecentsActivity.ACTIVITY_TRACKER::getCreatedActivity); mOrderSensitiveRules = RuleChain .outerRule(new SamplerRule()) + .around(new TestStabilityRule()) .around(new NavigationModeSwitchRule(mLauncher)) .around(new FailureWatcher(mLauncher, viewCaptureRule::getViewCaptureData)) .around(viewCaptureRule)