diff options
author | vadimt <vadimt@google.com> | 2019-06-25 16:13:42 -0700 |
---|---|---|
committer | vadimt <vadimt@google.com> | 2019-06-25 16:26:33 -0700 |
commit | 26cfff41bad35e6a4f770dcd45634551a1585ef3 (patch) | |
tree | 7fec7eb849697cb408e65a70cf7d564e56e156b9 /quickstep | |
parent | a90531cd00ad64fb8501c8190f99e068f9d581d6 (diff) | |
download | android_packages_apps_Trebuchet-26cfff41bad35e6a4f770dcd45634551a1585ef3.tar.gz android_packages_apps_Trebuchet-26cfff41bad35e6a4f770dcd45634551a1585ef3.tar.bz2 android_packages_apps_Trebuchet-26cfff41bad35e6a4f770dcd45634551a1585ef3.zip |
Taking screenshots for local tests for FallbackRecentsTest
Change-Id: I604e7e90f2146069827b520d44db1854edc7aa77
Diffstat (limited to 'quickstep')
-rw-r--r-- | quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java index 013591171..e5f949b88 100644 --- a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java +++ b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java @@ -43,10 +43,12 @@ import androidx.test.uiautomator.Until; import com.android.launcher3.tapl.LauncherInstrumentation; import com.android.launcher3.testcomponent.TestCommandReceiver; +import com.android.launcher3.util.rule.FailureWatcher; import com.android.quickstep.NavigationModeSwitchRule.NavigationModeSwitch; import org.junit.Rule; import org.junit.Test; +import org.junit.rules.RuleChain; import org.junit.rules.TestRule; import org.junit.runner.RunWith; import org.junit.runners.model.Statement; @@ -62,10 +64,14 @@ public class FallbackRecentsTest { private final LauncherInstrumentation mLauncher; private final ActivityInfo mOtherLauncherActivity; - @Rule public final TestRule mDisableHeadsUpNotification = disableHeadsUpNotification(); - @Rule public final TestRule mQuickstepOnOffExecutor; + @Rule + public final TestRule mDisableHeadsUpNotification = disableHeadsUpNotification(); - @Rule public final TestRule mSetLauncherCommand; + @Rule + public final TestRule mSetLauncherCommand; + + @Rule + public final TestRule mOrderSensitiveRules; public FallbackRecentsTest() throws RemoteException { Instrumentation instrumentation = getInstrumentation(); @@ -74,7 +80,10 @@ public class FallbackRecentsTest { mDevice.setOrientationNatural(); mLauncher = new LauncherInstrumentation(instrumentation); - mQuickstepOnOffExecutor = new NavigationModeSwitchRule(mLauncher); + mOrderSensitiveRules = RuleChain. + outerRule(new NavigationModeSwitchRule(mLauncher)). + around(new FailureWatcher(mDevice)); + mOtherLauncherActivity = context.getPackageManager().queryIntentActivities( getHomeIntentInPackage(context), MATCH_DISABLED_COMPONENTS).get(0).activityInfo; |