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

Unified Diff: chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/AutofillTest.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/sync_shell/javatests/src/org/chromium/chrome/browser/sync/AutofillTest.java
diff --git a/chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/AutofillTest.java b/chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/AutofillTest.java
index ebfd590d00e6e8999549a71891cf400163c64bc9..6b0d6f2df27d0851fce54db2150d8cd068f02615 100644
--- a/chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/AutofillTest.java
+++ b/chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/AutofillTest.java
@@ -104,7 +104,7 @@ public class AutofillTest extends SyncTestBase {
specifics.autofillProfile.addressHomeCity = MODIFIED_CITY;
mFakeServerHelper.modifyEntitySpecifics(autofill.id, specifics);
SyncTestUtil.triggerSync();
- pollForCriteria(new ClientAutofillCriteria() {
+ pollInstrumentationThread(new ClientAutofillCriteria() {
@Override
public boolean isSatisfied(List<Autofill> autofills) {
Autofill modifiedAutofill = autofills.get(0);
@@ -183,7 +183,7 @@ public class AutofillTest extends SyncTestBase {
}
private void waitForClientAutofillProfileCount(int count) throws InterruptedException {
- CriteriaHelper.pollForCriteria(Criteria.equals(count, new Callable<Integer>() {
+ CriteriaHelper.pollInstrumentationThread(Criteria.equals(count, new Callable<Integer>() {
@Override
public Integer call() throws Exception {
return SyncTestUtil.getLocalData(mContext, AUTOFILL_TYPE).size();
@@ -193,7 +193,7 @@ public class AutofillTest extends SyncTestBase {
private void waitForServerAutofillProfileCountWithName(final int count, final String name)
throws InterruptedException {
- CriteriaHelper.pollForCriteria(new Criteria(
+ CriteriaHelper.pollInstrumentationThread(new Criteria(
"Expected " + count + " server autofill profiles with name " + name + ".") {
@Override
public boolean isSatisfied() {

Powered by Google App Engine
This is Rietveld 408576698