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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.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: chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java
index 95ed3b3876fea1d71e08eb7c10bcc1f43ebc5cb4..a08c13cffce0823f6206fbfa94e09ec9702c1be9 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java
@@ -88,17 +88,13 @@ public class InterceptNavigationDelegateTest extends ChromeActivityTestCaseBase<
}
private void waitTillExpectedCallsComplete(int count, long timeout) {
- try {
- CriteriaHelper.pollUiThread(
- Criteria.equals(count, new Callable<Integer>() {
- @Override
- public Integer call() {
- return mNavParamHistory.size();
- }
- }), timeout, CriteriaHelper.DEFAULT_POLLING_INTERVAL);
- } catch (InterruptedException e) {
- fail("Failed while waiting for all calls to complete." + e);
- }
+ CriteriaHelper.pollUiThread(
+ Criteria.equals(count, new Callable<Integer>() {
+ @Override
+ public Integer call() {
+ return mNavParamHistory.size();
+ }
+ }), timeout, CriteriaHelper.DEFAULT_POLLING_INTERVAL);
}
@Override

Powered by Google App Engine
This is Rietveld 408576698