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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/MediaAccessPermissionRequestTest.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/MediaAccessPermissionRequestTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/MediaAccessPermissionRequestTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/MediaAccessPermissionRequestTest.java
index 912e9eef37e9b1cbded1c64ef73463401f2ac913..cb04a018f7f3cdfa99ff8a3507a675d70de0c6aa 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/MediaAccessPermissionRequestTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/MediaAccessPermissionRequestTest.java
@@ -117,7 +117,7 @@ public class MediaAccessPermissionRequestTest extends AwTestBase {
private void pollTitleAs(final String title, final AwContents awContents)
throws Exception {
- poll(new Callable<Boolean>() {
+ pollInstrumentationThread(new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
return title.equals(getTitleOnUiThread(awContents));
@@ -150,7 +150,7 @@ public class MediaAccessPermissionRequestTest extends AwTestBase {
Runtime.getRuntime().gc();
// Poll with gc in each iteration to reduce flake.
- poll(new Callable<Boolean>() {
+ pollInstrumentationThread(new Callable<Boolean>() {
@SuppressFBWarnings("DM_GC")
@Override
public Boolean call() throws Exception {

Powered by Google App Engine
This is Rietveld 408576698