Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b616ee02 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents f3b71bb2 d8827bad
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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 {