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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java

Issue 1786243003: Rename pollForCriteria to pollForTestThreadCriteria. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and update MediaRouterIntegrationTest.java Created 4 years, 9 months 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
Index: chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java
index d36d07c7900f82742c7c4f8d5f4ed449ec353fdc..ac2e8ce32002ab207a12242b1705506557c29dbd 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java
@@ -69,12 +69,13 @@ public class InterceptNavigationDelegateTest extends ChromeActivityTestCaseBase<
private void waitTillExpectedCallsComplete(int count, long timeout) {
try {
- CriteriaHelper.pollForCriteria(Criteria.equals(count, new Callable<Integer>() {
- @Override
- public Integer call() {
- return mHistory.size();
- }
- }), timeout, CriteriaHelper.DEFAULT_POLLING_INTERVAL);
+ CriteriaHelper.pollInstrumentationThread(
+ Criteria.equals(count, new Callable<Integer>() {
+ @Override
+ public Integer call() {
+ return mHistory.size();
+ }
+ }), timeout, CriteriaHelper.DEFAULT_POLLING_INTERVAL);
} catch (InterruptedException e) {
fail("Failed while waiting for all calls to complete." + e);
}

Powered by Google App Engine
This is Rietveld 408576698