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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/BindingManagerInDocumentModeIntegrationTest.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/BindingManagerInDocumentModeIntegrationTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/BindingManagerInDocumentModeIntegrationTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/BindingManagerInDocumentModeIntegrationTest.java
index 8d7bb3625ad28880d5ace9da9ee7e831632dd6c7..aa1d9622de6b2a111a3b702582a4c909f12c754b 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/BindingManagerInDocumentModeIntegrationTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/BindingManagerInDocumentModeIntegrationTest.java
@@ -42,7 +42,7 @@ public class BindingManagerInDocumentModeIntegrationTest extends DocumentModeTes
void assertIsInForeground(final int pid) {
try {
- CriteriaHelper.pollForCriteria(new Criteria() {
+ CriteriaHelper.pollInstrumentationThread(new Criteria() {
@Override
public boolean isSatisfied() {
return mProcessInForegroundMap.get(pid);
@@ -55,7 +55,7 @@ public class BindingManagerInDocumentModeIntegrationTest extends DocumentModeTes
void assertIsInBackground(final int pid) {
try {
- CriteriaHelper.pollForCriteria(new Criteria() {
+ CriteriaHelper.pollInstrumentationThread(new Criteria() {
@Override
public boolean isSatisfied() {
return !mProcessInForegroundMap.get(pid);
@@ -68,7 +68,7 @@ public class BindingManagerInDocumentModeIntegrationTest extends DocumentModeTes
void assertSetInForegroundWasCalled(String message, final int pid) {
try {
- CriteriaHelper.pollForCriteria(new Criteria(message) {
+ CriteriaHelper.pollInstrumentationThread(new Criteria(message) {
@Override
public boolean isSatisfied() {
return mProcessInForegroundMap.indexOfKey(pid) >= 0;
@@ -81,7 +81,7 @@ public class BindingManagerInDocumentModeIntegrationTest extends DocumentModeTes
void assertIsReleaseAllModerateBindingsCalled() {
try {
- CriteriaHelper.pollForCriteria(new Criteria() {
+ CriteriaHelper.pollInstrumentationThread(new Criteria() {
@Override
public boolean isSatisfied() {
return mIsReleaseAllModerateBindingsCalled;
@@ -217,7 +217,7 @@ public class BindingManagerInDocumentModeIntegrationTest extends DocumentModeTes
assertTrue(ChildProcessLauncher.crashProcessForTesting(
tab.getContentViewCore().getCurrentRenderProcessId()));
- CriteriaHelper.pollForCriteria(
+ CriteriaHelper.pollInstrumentationThread(
new Criteria("Renderer crash wasn't noticed by the browser.") {
@Override
public boolean isSatisfied() {
@@ -234,7 +234,7 @@ public class BindingManagerInDocumentModeIntegrationTest extends DocumentModeTes
});
// Wait until the process is spawned and its visibility is determined.
- CriteriaHelper.pollForCriteria(
+ CriteriaHelper.pollInstrumentationThread(
new Criteria("Process for the crashed tab was not respawned.") {
@Override
public boolean isSatisfied() {

Powered by Google App Engine
This is Rietveld 408576698