Merge "Verifying that Launcher didn't crash in TaplTestsQuickstep" into ub-launcher3-master
This commit is contained in:
commit
b616ee02f5
|
@ -43,6 +43,7 @@ import com.android.launcher3.ui.TaplTestsLauncher3;
|
||||||
import com.android.quickstep.NavigationModeSwitchRule.NavigationModeSwitch;
|
import com.android.quickstep.NavigationModeSwitchRule.NavigationModeSwitch;
|
||||||
import com.android.quickstep.views.RecentsView;
|
import com.android.quickstep.views.RecentsView;
|
||||||
|
|
||||||
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
@ -51,10 +52,18 @@ import org.junit.runner.RunWith;
|
||||||
@LargeTest
|
@LargeTest
|
||||||
@RunWith(AndroidJUnit4.class)
|
@RunWith(AndroidJUnit4.class)
|
||||||
public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
||||||
|
private int mLauncherPid;
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
TaplTestsLauncher3.initialize(this);
|
TaplTestsLauncher3.initialize(this);
|
||||||
|
mLauncherPid = mLauncher.getPid();
|
||||||
|
}
|
||||||
|
|
||||||
|
@After
|
||||||
|
public void teardown() {
|
||||||
|
assertEquals("Launcher crashed, pid mismatch:", mLauncherPid, mLauncher.getPid());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void startTestApps() throws Exception {
|
private void startTestApps() throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue