Revert "Verifying that workspace looks correct at the end of the test."
This reverts commit 62e3b162ba.
Reason for revert: Possible culprit for b/301966780
Change-Id: Ice6babe404feeddf9f8b13ce2a6288005402c9cd
This commit is contained in:
1 parent
27142036ca
commit
df751430bc
4 files changed
+19
-71
No files matched your search
@@ -61,7 +61,6 @@ import com.android.launcher3.util.Wait;
|
||||
import com.android.launcher3.util.rule.FailureWatcher;
|
||||
import com.android.launcher3.util.rule.SamplerRule;
|
||||
import com.android.launcher3.util.rule.ScreenRecordRule;
|
||||
import com.android.launcher3.util.rule.TestIsolationRule;
|
||||
import com.android.launcher3.util.rule.TestStabilityRule;
|
||||
import com.android.launcher3.util.rule.ViewCaptureRule;
|
||||
import com.android.quickstep.views.RecentsView;
|
||||
@@ -94,6 +93,9 @@ public class FallbackRecentsTest {
|
||||
@Rule
|
||||
public final TestRule mDisableHeadsUpNotification = disableHeadsUpNotification();
|
||||
|
||||
@Rule
|
||||
public final TestRule mSetLauncherCommand;
|
||||
|
||||
@Rule
|
||||
public final TestRule mOrderSensitiveRules;
|
||||
|
||||
@@ -114,7 +116,19 @@ public class FallbackRecentsTest {
|
||||
Utilities.enableRunningInTestHarnessForTests();
|
||||
}
|
||||
|
||||
final TestRule setLauncherCommand = (base, desc) -> new Statement() {
|
||||
final ViewCaptureRule viewCaptureRule = new ViewCaptureRule(
|
||||
RecentsActivity.ACTIVITY_TRACKER::getCreatedActivity);
|
||||
mOrderSensitiveRules = RuleChain
|
||||
.outerRule(new SamplerRule())
|
||||
.around(new NavigationModeSwitchRule(mLauncher))
|
||||
.around(new FailureWatcher(mLauncher, viewCaptureRule::getViewCaptureData))
|
||||
.around(viewCaptureRule);
|
||||
|
||||
mOtherLauncherActivity = context.getPackageManager().queryIntentActivities(
|
||||
getHomeIntentInPackage(context),
|
||||
MATCH_DISABLED_COMPONENTS).get(0).activityInfo;
|
||||
|
||||
mSetLauncherCommand = (base, desc) -> new Statement() {
|
||||
@Override
|
||||
public void evaluate() throws Throwable {
|
||||
TestCommandReceiver.callCommand(TestCommandReceiver.ENABLE_TEST_LAUNCHER);
|
||||
@@ -138,21 +152,6 @@ public class FallbackRecentsTest {
|
||||
}
|
||||
};
|
||||
|
||||
final ViewCaptureRule viewCaptureRule = new ViewCaptureRule(
|
||||
RecentsActivity.ACTIVITY_TRACKER::getCreatedActivity);
|
||||
mOrderSensitiveRules = RuleChain
|
||||
.outerRule(new SamplerRule())
|
||||
.around(new TestStabilityRule())
|
||||
.around(new NavigationModeSwitchRule(mLauncher))
|
||||
.around(new FailureWatcher(mLauncher, viewCaptureRule::getViewCaptureData))
|
||||
.around(viewCaptureRule)
|
||||
.around(new TestIsolationRule(mLauncher))
|
||||
.around(setLauncherCommand);
|
||||
|
||||
mOtherLauncherActivity = context.getPackageManager().queryIntentActivities(
|
||||
getHomeIntentInPackage(context),
|
||||
MATCH_DISABLED_COMPONENTS).get(0).activityInfo;
|
||||
|
||||
if (TestHelpers.isInLauncherProcess()) {
|
||||
mLauncher.setSystemHealthSupplier(startTime -> TestCommandReceiver.callCommand(
|
||||
TestCommandReceiver.GET_SYSTEM_HEALTH_MESSAGE, startTime.toString()).
|
||||
|
||||
Reference in new issue
Block a user