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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/ContextMenuTest.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/contextmenu/ContextMenuTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/ContextMenuTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/ContextMenuTest.java
index fcfa41e40298a412bbfcd71a7713eed7b8ffbc16..553b2b46a7ba3943d314cc679de25bf0a6cb70eb 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/ContextMenuTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/ContextMenuTest.java
@@ -157,7 +157,7 @@ public class ContextMenuTest extends DownloadTestBase {
// Only check for the URL matching as the tab will not be fully created in svelte mode.
final String expectedUrl = mTestServer.getURL(expectedPath);
- CriteriaHelper.pollForUIThreadCriteria(Criteria.equals(expectedUrl, new Callable<String>() {
+ CriteriaHelper.pollUiThread(Criteria.equals(expectedUrl, new Callable<String>() {
@Override
public String call() {
return newTab.get().getUrl();
@@ -174,7 +174,7 @@ public class ContextMenuTest extends DownloadTestBase {
assertFalse("Context menu did not have window focus", getActivity().hasWindowFocus());
getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_BACK);
- CriteriaHelper.pollForCriteria(new Criteria("Activity did not regain focus.") {
+ CriteriaHelper.pollInstrumentationThread(new Criteria("Activity did not regain focus.") {
@Override
public boolean isSatisfied() {
return getActivity().hasWindowFocus();
@@ -192,7 +192,7 @@ public class ContextMenuTest extends DownloadTestBase {
TestTouchUtils.singleClickView(getInstrumentation(), tab.getView(), 0, 0);
- CriteriaHelper.pollForCriteria(new Criteria("Activity did not regain focus.") {
+ CriteriaHelper.pollInstrumentationThread(new Criteria("Activity did not regain focus.") {
@Override
public boolean isSatisfied() {
return getActivity().hasWindowFocus();
@@ -262,7 +262,7 @@ public class ContextMenuTest extends DownloadTestBase {
// Wait for any new tab animation to finish if we're being driven by the compositor.
final LayoutManager layoutDriver = getActivity()
.getCompositorViewHolder().getLayoutManager();
- CriteriaHelper.pollForUIThreadCriteria(
+ CriteriaHelper.pollUiThread(
new Criteria("Background tab animation not finished.") {
@Override
public boolean isSatisfied() {

Powered by Google App Engine
This is Rietveld 408576698