From 53d3be9d661a005481f775cac4554b4d81b2c4b7 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Mon, 4 Apr 2022 19:58:16 +0100 Subject: [PATCH] Add ScreenRecordrule to FallbackRecentsTest Bug: 223278795 Test: presubmit Change-Id: Iec9157165bb21626af7036a9c4df0dfcc447f890 --- .../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 9b38853304..ae00d82fea 100644 --- a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java +++ b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java @@ -57,6 +57,7 @@ import com.android.launcher3.tapl.TestHelpers; import com.android.launcher3.testcomponent.TestCommandReceiver; import com.android.launcher3.util.Wait; import com.android.launcher3.util.rule.FailureWatcher; +import com.android.launcher3.util.rule.ScreenRecordRule; import com.android.launcher3.util.rule.ScreenRecordRule.ScreenRecord; import com.android.quickstep.views.RecentsView; @@ -91,6 +92,9 @@ public class FallbackRecentsTest { @Rule public final TestRule mOrderSensitiveRules; + @Rule + public ScreenRecordRule mScreenRecordRule = new ScreenRecordRule(); + public FallbackRecentsTest() throws RemoteException { Instrumentation instrumentation = getInstrumentation(); Context context = instrumentation.getContext();