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

Unified Diff: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java

Issue 2573263002: Catch InterruptedException in CriteriaHelper (Closed)
Patch Set: Change OverviewModeBehaviorWatcher back to try/finally Created 4 years 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: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java
diff --git a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java
index 6bd6e0d557b94264054b9d5ecee6590eede6aa11..48e2f95b13ac4d30ad4bdfa15625404a27623fc4 100644
--- a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java
+++ b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java
@@ -100,8 +100,7 @@ public class DOMUtils {
* @param webContents The WebContents in which the media element lives.
* @param id The element's id to check.
*/
- public static void waitForMediaPlay(final WebContents webContents, final String id)
- throws InterruptedException {
+ public static void waitForMediaPlay(final WebContents webContents, final String id) {
CriteriaHelper.pollInstrumentationThread(new Criteria() {
@Override
public boolean isSatisfied() {
@@ -125,8 +124,7 @@ public class DOMUtils {
* @param webContents The WebContents in which the media element lives.
* @param id The element's id to check.
*/
- public static void waitForMediaPauseBeforeEnd(final WebContents webContents, final String id)
- throws InterruptedException {
+ public static void waitForMediaPauseBeforeEnd(final WebContents webContents, final String id) {
CriteriaHelper.pollInstrumentationThread(new Criteria() {
@Override
public boolean isSatisfied() {
@@ -357,8 +355,7 @@ public class DOMUtils {
* @param nodeId The id of the node.
*/
public static void waitForNonZeroNodeBounds(final WebContents webContents,
- final String nodeId)
- throws InterruptedException {
+ final String nodeId) {
CriteriaHelper.pollInstrumentationThread(new Criteria() {
@Override
public boolean isSatisfied() {

Powered by Google App Engine
This is Rietveld 408576698