| Index: chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeRecentlyClosedTest.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeRecentlyClosedTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeRecentlyClosedTest.java
|
| index ab37e4319f647d8085cc2c573e9370d89d8238cc..3e3cf729067bd0589593c69bd952045089388f11 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeRecentlyClosedTest.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeRecentlyClosedTest.java
|
| @@ -20,6 +20,7 @@ import org.chromium.chrome.browser.tabmodel.document.ActivityDelegate;
|
| import org.chromium.chrome.browser.tabmodel.document.DocumentTabModel.Entry;
|
| import org.chromium.chrome.browser.tabmodel.document.DocumentTabModelSelector;
|
| import org.chromium.chrome.test.util.ActivityUtils;
|
| +import org.chromium.chrome.test.util.ApplicationTestUtils;
|
| import org.chromium.chrome.test.util.DisableInTabbedMode;
|
| import org.chromium.content.browser.test.util.Criteria;
|
| import org.chromium.content.browser.test.util.CriteriaHelper;
|
| @@ -96,13 +97,13 @@ public class DocumentModeRecentlyClosedTest extends DocumentModeTestBase {
|
| assertEquals("Wrong tab count", 2, selector.getTotalTabCount());
|
|
|
| // Return to the Android Home screen.
|
| - launchHomeIntent(mContext);
|
| + ApplicationTestUtils.fireHomeScreenIntent(mContext);
|
| assertEquals("Wrong tab count", 2, selector.getTotalTabCount());
|
|
|
| // Remove the fake task, then bring Chrome back to the foreground to make the
|
| // DocumentTabModel update.
|
| activityDelegate.mExtraRegularTask = null;
|
| - launchMainIntent(mContext);
|
| + ApplicationTestUtils.launchChrome(mContext);
|
| assertTrue(CriteriaHelper.pollForCriteria(new Criteria() {
|
| @Override
|
| public boolean isSatisfied() {
|
|
|