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

Unified Diff: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.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
« no previous file with comments | « content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java
diff --git a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java
index f2f363cbf0bd50489c0b48ab97f43834ac0f2820..45b50c600de486ae17ad178ef57908c472f5bbc0 100644
--- a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java
+++ b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java
@@ -108,7 +108,7 @@ public class ContentShellTestBase
final ContentShellActivity activity = getActivity();
// Wait for the Content Shell to be initialized.
- CriteriaHelper.pollForUIThreadCriteria(new Criteria() {
+ CriteriaHelper.pollUiThread(new Criteria() {
@Override
public boolean isSatisfied() {
Shell shell = activity.getActiveShell();
@@ -200,12 +200,13 @@ public class ContentShellTestBase
*/
protected void assertWaitForPageScaleFactorMatch(float expectedScale)
throws InterruptedException {
- CriteriaHelper.pollForCriteria(Criteria.equals(expectedScale, new Callable<Float>() {
- @Override
- public Float call() {
- return getContentViewCore().getScale();
- }
- }));
+ CriteriaHelper.pollInstrumentationThread(
+ Criteria.equals(expectedScale, new Callable<Float>() {
+ @Override
+ public Float call() {
+ return getContentViewCore().getScale();
+ }
+ }));
}
/**
« no previous file with comments | « content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698