Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4084)

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/document/LauncherActivityTest.java

Issue 2484243003: Increase timeout of LauncherActivityTest (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/document/LauncherActivityTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/document/LauncherActivityTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/document/LauncherActivityTest.java
index 2d051f905496fe997952090d10a94b5e76120f0d..64cb7cfdb146f0087981fbabd143883962b88a86 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/document/LauncherActivityTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/document/LauncherActivityTest.java
@@ -4,6 +4,8 @@
package org.chromium.chrome.browser.document;
+import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout;
+
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
@@ -34,6 +36,7 @@ import java.util.concurrent.atomic.AtomicReference;
public class LauncherActivityTest extends ChromeActivityTestCaseBase<ChromeActivity> {
private Context mContext;
+ private static final long DEVICE_STARTUP_TIMEOUT_MS = scaleTimeout(15000);
public LauncherActivityTest() {
super(ChromeActivity.class);
@@ -102,7 +105,7 @@ public class LauncherActivityTest extends ChromeActivityTestCaseBase<ChromeActiv
launchedActivity.set(references.get(0).get());
return launchedActivity.get() instanceof ChromeActivity;
}
- });
+ }, DEVICE_STARTUP_TIMEOUT_MS, CriteriaHelper.DEFAULT_POLLING_INTERVAL);
return launchedActivity.get();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698