Make @QuickstepOnOff and @PortraitLandscape available to all UI tests.

Also, fix rotation as Portrait as starting poin for all tests, to avoid
tests running in unexpected configuration.

Bug: 115645301
Test: run all Nexus tests
Change-Id: I3ab0e91db111eeefda77af2960c43962a119de0c
This commit is contained in:
Vadim Tryshev
2018-09-28 18:08:44 -07:00
parent d9f52ae7ba
commit 6ffb2c8faa
5 changed files with 218 additions and 14 deletions

View File

@@ -34,6 +34,7 @@ import com.android.launcher3.LauncherAppWidgetProviderInfo;
import com.android.launcher3.Workspace;
import com.android.launcher3.testcomponent.WidgetConfigActivity;
import com.android.launcher3.ui.AbstractLauncherUiTest;
import com.android.launcher3.ui.TestHelpers;
import com.android.launcher3.util.Condition;
import com.android.launcher3.util.Wait;
import com.android.launcher3.util.rule.ShellCommandRule;
@@ -131,7 +132,7 @@ public class AddConfigWidgetTest extends AbstractLauncherUiTest {
private void setResult(boolean success) {
getInstrumentation().getTargetContext().sendBroadcast(
TestHelpers.getInstrumentation().getTargetContext().sendBroadcast(
WidgetConfigActivity.getCommandIntent(WidgetConfigActivity.class,
success ? "clickOK" : "clickCancel"));
}