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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfobarTest.java

Issue 2487683003: Convert InfoBarTestAnimationListener to CallbackHelper. (Closed)
Patch Set: Created 4 years, 1 month 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/infobar/PermissionUpdateInfobarTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfobarTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfobarTest.java
index 1d829f33bc5cf93bbec8d9d3fb2e578c6d7824f6..75c00d50343a33b86dd963641f461b4281cbf164 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfobarTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfobarTest.java
@@ -63,7 +63,7 @@ public class PermissionUpdateInfobarTest extends ChromeTabbedActivityTestBase {
// permissions.
@MediumTest
public void testInfobarShutsDownCleanlyForGeolocation()
- throws IllegalArgumentException, InterruptedException {
+ throws IllegalArgumentException, InterruptedException, TimeoutException {
ChromeTabUtils.newTabFromMenu(getInstrumentation(), getActivity());
// Register for animation notifications
@@ -104,7 +104,7 @@ public class PermissionUpdateInfobarTest extends ChromeTabbedActivityTestBase {
});
loadUrl(mTestServer.getURL(GEOLOCATION_PAGE));
- assertTrue("InfoBar not added", mListener.addInfoBarAnimationFinished());
+ mListener.addInfoBarAnimationFinished("InfoBar not added");
assertEquals(1, getInfoBars().size());
final WebContents webContents = ThreadUtils.runOnUiThreadBlockingNoException(
@@ -183,7 +183,7 @@ public class PermissionUpdateInfobarTest extends ChromeTabbedActivityTestBase {
});
loadUrl(mTestServer.getURL(GEOLOCATION_IFRAME_PAGE));
- assertTrue("InfoBar not added", mListener.addInfoBarAnimationFinished());
+ mListener.addInfoBarAnimationFinished("InfoBar not added");
assertEquals(1, getInfoBars().size());
final WebContents webContents = ThreadUtils.runOnUiThreadBlockingNoException(

Powered by Google App Engine
This is Rietveld 408576698