Merge "Verifying that Launcher didn't crash in TaplTestsQuickstep" into ub-launcher3-master

This commit is contained in:
TreeHugger Robot 2020-01-17 16:27:25 +00:00 committed by Android (Google) Code Review
commit b616ee02f5
1 changed files with 9 additions and 0 deletions

View File

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