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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.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: android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java
index e8e6a380f81a26813320a31f5198156f820d2f47..ffcd210b0b2222443fb9b51915527143223eef65 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java
@@ -941,7 +941,7 @@ public class AwSettingsTest extends AwTestBase {
executeJavaScriptAndWaitForResult("setTitleToActualFontSize()");
} else {
final float oldFontSize = mOldFontSize;
- poll(new Callable<Boolean>() {
+ pollInstrumentationThread(new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
executeJavaScriptAndWaitForResult("setTitleToActualFontSize()");
@@ -1164,7 +1164,7 @@ public class AwSettingsTest extends AwTestBase {
protected void doEnsureSettingHasValue(Boolean value) throws Throwable {
loadDataSync(getData());
final boolean expectPopupEnabled = value;
- poll(new Callable<Boolean>() {
+ pollInstrumentationThread(new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
String title = getTitleOnUiThread();
@@ -1582,7 +1582,7 @@ public class AwSettingsTest extends AwTestBase {
assertEquals(ImagePageGenerator.IMAGE_NOT_LOADED_STRING,
getTitleOnUiThread(awContents));
settings.setLoadsImagesAutomatically(true);
- poll(new Callable<Boolean>() {
+ pollInstrumentationThread(new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
return !ImagePageGenerator.IMAGE_NOT_LOADED_STRING.equals(
@@ -1969,7 +1969,7 @@ public class AwSettingsTest extends AwTestBase {
getTitleOnUiThread(awContents));
settings.setImagesEnabled(true);
- poll(new Callable<Boolean>() {
+ pollInstrumentationThread(new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
return ImagePageGenerator.IMAGE_LOADED_STRING.equals(
@@ -2386,7 +2386,7 @@ public class AwSettingsTest extends AwTestBase {
private int waitUntilResourceIsRequested(
final String path, final int initialRequestCount) throws Exception {
- poll(new Callable<Boolean>() {
+ pollInstrumentationThread(new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
return mWebServer.getRequestCount(path) > initialRequestCount;

Powered by Google App Engine
This is Rietveld 408576698