Merge "Not using browser app in testing. It may not start." into ub-launcher3-qt-dev

This commit is contained in:
Vadim Tryshev
2019-04-22 22:58:32 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 2 deletions
@@ -16,6 +16,8 @@
package com.android.quickstep;
import static com.android.launcher3.ui.TaplTestsLauncher3.getAppPackageName;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
@@ -60,7 +62,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
}
private void startTestApps() throws Exception {
startAppFast(resolveSystemApp(Intent.CATEGORY_APP_BROWSER));
startAppFast(getAppPackageName());
startAppFast(resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR));
startAppFast(resolveSystemApp(Intent.CATEGORY_APP_CONTACTS));
@@ -370,7 +370,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
launch(getAppPackageName());
}
private static String getAppPackageName() {
public static String getAppPackageName() {
return getInstrumentation().getContext().getPackageName();
}
}