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

Unified Diff: chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/GmsCoreSyncListenerTest.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/sync_shell/javatests/src/org/chromium/chrome/browser/sync/GmsCoreSyncListenerTest.java
diff --git a/chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/GmsCoreSyncListenerTest.java b/chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/GmsCoreSyncListenerTest.java
index 755c3839f5616ae1302dc631b5be554c5fc04fa4..ff45e56ef40904191ae5a4f2a5a04bb92c115835 100644
--- a/chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/GmsCoreSyncListenerTest.java
+++ b/chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/GmsCoreSyncListenerTest.java
@@ -88,7 +88,7 @@ public class GmsCoreSyncListenerTest extends SyncTestBase {
waitForCallCount(2);
}
- private void encryptWithPassphrase(final String passphrase) throws InterruptedException {
+ private void encryptWithPassphrase(final String passphrase) {
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
public void run() {
@@ -100,7 +100,7 @@ public class GmsCoreSyncListenerTest extends SyncTestBase {
SyncTestUtil.triggerSyncAndWaitForCompletion();
}
- private void decryptWithPassphrase(final String passphrase) throws InterruptedException {
+ private void decryptWithPassphrase(final String passphrase) {
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
public void run() {
@@ -109,7 +109,7 @@ public class GmsCoreSyncListenerTest extends SyncTestBase {
});
}
- private void waitForCryptographer() throws InterruptedException {
+ private void waitForCryptographer() {
CriteriaHelper.pollUiThread(new Criteria(
"Timed out waiting for cryptographer to be ready.") {
@Override
@@ -121,7 +121,7 @@ public class GmsCoreSyncListenerTest extends SyncTestBase {
});
}
- private void waitForCallCount(int count) throws InterruptedException {
+ private void waitForCallCount(int count) {
CriteriaHelper.pollUiThread(Criteria.equals(count, new Callable<Integer>() {
@Override
public Integer call() {

Powered by Google App Engine
This is Rietveld 408576698