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

Commit 191af919 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski Committed by Android (Google) Code Review
Browse files

Merge "Remove revealLauncher and revealApp from tests." into nyc-dev

parents 0af8afd3 85396a37
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -93,7 +93,6 @@ public abstract class ActivityTest<T extends Activity> extends ActivityInstrumen
        bots = new Bots(device, context, TIMEOUT);

        Configurator.getInstance().setToolType(MotionEvent.TOOL_TYPE_MOUSE);
        bots.main.revealLauncher();

        mResolver = context.getContentResolver();
        mClient = mResolver.acquireUnstableContentProviderClient(DEFAULT_AUTHORITY);
@@ -103,8 +102,6 @@ public abstract class ActivityTest<T extends Activity> extends ActivityInstrumen
        rootDir1 = mDocsHelper.getRoot(ROOT_1_ID);

        launchActivity();

        bots.main.revealApp();
        resetStorage();
    }

+0 −10
Original line number Diff line number Diff line
@@ -212,16 +212,6 @@ public class UiBot extends BaseBot {
        return mDevice.findObject(selector);
    }

    public void revealLauncher() {
        mDevice.pressHome();
        mDevice.wait(Until.hasObject(By.pkg(LAUNCHER_PKG).depth(0)), mTimeout);
    }

    public void revealApp() {
        mDevice.wait(Until.hasObject(By.pkg(TARGET_PKG).depth(0)), mTimeout);
        mDevice.waitForIdle();
    }

    public void pressKey(int keyCode) {
        mDevice.pressKeyCode(keyCode);
    }