Merge "Adding tests for fallback recents when a 3rd party launcher is installed" into ub-launcher3-master

This commit is contained in:
TreeHugger Robot
2018-10-09 21:32:19 +00:00
committed by Android (Google) Code Review
24 changed files with 609 additions and 206 deletions

View File

@@ -20,6 +20,8 @@ import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertTrue;
import static androidx.test.InstrumentationRegistry.getInstrumentation;
import android.appwidget.AppWidgetManager;
import android.content.Intent;
import androidx.test.filters.LargeTest;
@@ -34,7 +36,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.tapl.TestHelpers;
import com.android.launcher3.util.Condition;
import com.android.launcher3.util.Wait;
import com.android.launcher3.util.rule.ShellCommandRule;
@@ -136,8 +138,7 @@ public class AddConfigWidgetTest extends AbstractLauncherUiTest {
}
private void setResult(boolean success) {
TestHelpers.getInstrumentation().getTargetContext().sendBroadcast(
getInstrumentation().getTargetContext().sendBroadcast(
WidgetConfigActivity.getCommandIntent(WidgetConfigActivity.class,
success ? "clickOK" : "clickCancel"));
}