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 committed 2018-10-02 17:32:01 -07:00
1 parent d9f52ae7ba
commit 6ffb2c8faa
5 files changed
+218 -14

No files matched your search

@@ -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"));
}