Index: chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java |
index ae905382ac397d58bf6f84fa61cca08082dbdf1e..673f32d2a7b153c299cf62aee8feadd85a23c0d8 100644 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java |
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java |
@@ -124,7 +124,7 @@ public class DownloadTest extends DownloadTestBase { |
assertEquals(mTestServer.getURL("/chrome/test/data/android/download/test.gzip"), |
callbackHelper.getDownloadInfo().getUrl()); |
- CriteriaHelper.pollForUIThreadCriteria( |
+ CriteriaHelper.pollUiThread( |
Criteria.equals(initialTabCount, new Callable<Integer>() { |
@Override |
public Integer call() { |
@@ -279,7 +279,7 @@ public class DownloadTest extends DownloadTestBase { |
} |
}); |
- CriteriaHelper.pollForUIThreadCriteria(new Criteria() { |
+ CriteriaHelper.pollUiThread(new Criteria() { |
@Override |
public boolean isSatisfied() { |
return getActivity().getActivityTab() == model.getTabAt(count - 1) |
@@ -293,7 +293,7 @@ public class DownloadTest extends DownloadTestBase { |
// Wait until we have a new tab first. This should be called before checking the active |
// layout because the active layout changes StaticLayout --> SimpleAnimationLayout |
// --> (tab added) --> StaticLayout. |
- CriteriaHelper.pollForUIThreadCriteria(new Criteria() { |
+ CriteriaHelper.pollUiThread(new Criteria() { |
@Override |
public boolean isSatisfied() { |
updateFailureReason( |
@@ -304,7 +304,7 @@ public class DownloadTest extends DownloadTestBase { |
// Now wait until the new tab animation finishes. Something wonky happens |
// if we try to go to the new tab before this. |
- CriteriaHelper.pollForUIThreadCriteria(new Criteria() { |
+ CriteriaHelper.pollUiThread(new Criteria() { |
@Override |
public boolean isSatisfied() { |
CompositorViewHolder compositorViewHolder = |
@@ -387,7 +387,7 @@ public class DownloadTest extends DownloadTestBase { |
*/ |
private void assertPollForInfoBarSize(final int size) throws InterruptedException { |
final InfoBarContainer container = getActivity().getActivityTab().getInfoBarContainer(); |
- CriteriaHelper.pollForUIThreadCriteria(new Criteria() { |
+ CriteriaHelper.pollUiThread(new Criteria() { |
@Override |
public boolean isSatisfied() { |
updateFailureReason("There should be " + size + " infobar but there are " |