Performing a check for a crashed Launcher process for each UI test

This commit is contained in:
vadimt
2020-02-24 18:24:05 -08:00
committed by Vadim Tryshev
parent 4365734017
commit b79614cc93
3 changed files with 9 additions and 28 deletions

View File

@@ -45,7 +45,6 @@ import com.android.launcher3.util.rule.TestStabilityRule;
import com.android.quickstep.NavigationModeSwitchRule.NavigationModeSwitch;
import com.android.quickstep.views.RecentsView;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -53,21 +52,10 @@ import org.junit.runner.RunWith;
@LargeTest
@RunWith(AndroidJUnit4.class)
public class TaplTestsQuickstep extends AbstractQuickStepTest {
private int mLauncherPid;
@Before
public void setUp() throws Exception {
mLauncherPid = 0;
super.setUp();
TaplTestsLauncher3.initialize(this);
mLauncherPid = mLauncher.getPid();
}
@After
public void teardown() {
if (mLauncherPid != 0) {
assertEquals("Launcher crashed, pid mismatch:", mLauncherPid, mLauncher.getPid());
}
}
private void startTestApps() throws Exception {