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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/fullscreen/FullscreenManagerTest.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/javatests/src/org/chromium/chrome/browser/fullscreen/FullscreenManagerTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/fullscreen/FullscreenManagerTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/fullscreen/FullscreenManagerTest.java
index ee9b9ec6345fc14bbf80f1b8f9fd0341949e305d..f34d0d419130a7c4ab411a6df5469f34d60b27b3 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/fullscreen/FullscreenManagerTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/fullscreen/FullscreenManagerTest.java
@@ -204,7 +204,7 @@ public class FullscreenManagerTest extends ChromeTabbedActivityTestBase {
// When the top-controls are removed, we need a layout to trigger the
// transparent region for the app to be updated.
scrollTopControls(false);
- CriteriaHelper.pollForUIThreadCriteria(
+ CriteriaHelper.pollUiThread(
new Criteria() {
@Override
public boolean isSatisfied() {
@@ -383,7 +383,7 @@ public class FullscreenManagerTest extends ChromeTabbedActivityTestBase {
private void waitForTopControlsPosition(float position) throws InterruptedException {
final ChromeFullscreenManager fullscreenManager = getActivity().getFullscreenManager();
- CriteriaHelper.pollForUIThreadCriteria(Criteria.equals(position, new Callable<Float>() {
+ CriteriaHelper.pollUiThread(Criteria.equals(position, new Callable<Float>() {
@Override
public Float call() {
return fullscreenManager.getControlOffset();
@@ -393,7 +393,7 @@ public class FullscreenManagerTest extends ChromeTabbedActivityTestBase {
private void waitForNoBrowserTopControlsOffset() throws InterruptedException {
final ChromeFullscreenManager fullscreenManager = getActivity().getFullscreenManager();
- CriteriaHelper.pollForUIThreadCriteria(new Criteria() {
+ CriteriaHelper.pollUiThread(new Criteria() {
@Override
public boolean isSatisfied() {
return !fullscreenManager.hasBrowserControlOffsetOverride();
@@ -402,7 +402,7 @@ public class FullscreenManagerTest extends ChromeTabbedActivityTestBase {
}
private void waitForPageToBeScrollable(final Tab tab) throws InterruptedException {
- CriteriaHelper.pollForUIThreadCriteria(new Criteria() {
+ CriteriaHelper.pollUiThread(new Criteria() {
@Override
public boolean isSatisfied() {
ContentViewCore contentViewCore = tab.getContentViewCore();
@@ -471,7 +471,7 @@ public class FullscreenManagerTest extends ChromeTabbedActivityTestBase {
}
private void waitForEditableNodeToLoseFocus(final Tab tab) throws InterruptedException {
- CriteriaHelper.pollForUIThreadCriteria(new Criteria() {
+ CriteriaHelper.pollUiThread(new Criteria() {
@Override
public boolean isSatisfied() {
ContentViewCore contentViewCore = tab.getContentViewCore();

Powered by Google App Engine
This is Rietveld 408576698