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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/ChromeBrowserSyncAdapterTest.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/invalidation/ChromeBrowserSyncAdapterTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/ChromeBrowserSyncAdapterTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/ChromeBrowserSyncAdapterTest.java
index fdad0c2fe8ff85c5efef511cc01b89755547332b..ea924ec654adab314cb9b953706e940114ca2c88 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/ChromeBrowserSyncAdapterTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/ChromeBrowserSyncAdapterTest.java
@@ -86,7 +86,7 @@ public class ChromeBrowserSyncAdapterTest extends ChromeActivityTestCaseBase<Chr
AndroidSyncSettings.getContractAuthority(getActivity()), null, new SyncResult());
}
- private void sendChromeToBackground(Activity activity) throws InterruptedException {
+ private void sendChromeToBackground(Activity activity) {
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
activity.startActivity(intent);
@@ -136,7 +136,7 @@ public class ChromeBrowserSyncAdapterTest extends ChromeActivityTestCaseBase<Chr
@MediumTest
@Feature({"Sync"})
@RetryOnFailure
- public void testRequestSyncWhenChromeInBackground() throws InterruptedException {
+ public void testRequestSyncWhenChromeInBackground() {
sendChromeToBackground(getActivity());
performSyncWithBundle(new Bundle());
assertFalse(mSyncAdapter.mInvalidatedAllTypes);
@@ -147,7 +147,7 @@ public class ChromeBrowserSyncAdapterTest extends ChromeActivityTestCaseBase<Chr
@MediumTest
@Feature({"Sync"})
@RetryOnFailure
- public void testRequestInitializeSync() throws InterruptedException {
+ public void testRequestInitializeSync() {
Bundle extras = new Bundle();
extras.putBoolean(ContentResolver.SYNC_EXTRAS_INITIALIZE, true);
performSyncWithBundle(extras);

Powered by Google App Engine
This is Rietveld 408576698