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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabTabPersistenceIntegrationTest.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/customtabs/CustomTabTabPersistenceIntegrationTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabTabPersistenceIntegrationTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabTabPersistenceIntegrationTest.java
index 5e197a36b282270713fad03c3905f241263705b9..9b2898df89bc1589eb9f323d47fe22d5049c96c0 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabTabPersistenceIntegrationTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabTabPersistenceIntegrationTest.java
@@ -28,7 +28,7 @@ public class CustomTabTabPersistenceIntegrationTest extends CustomTabActivityTes
}
@MediumTest
- public void testTabFilesDeletedOnClose() throws InterruptedException {
+ public void testTabFilesDeletedOnClose() {
Tab tab = getActivity().getActivityTab();
String expectedTabFileName = TabState.getTabStateFilename(tab.getId(), false);
String expectedMetadataFileName =
@@ -45,8 +45,7 @@ public class CustomTabTabPersistenceIntegrationTest extends CustomTabActivityTes
}
private void waitForFileExistState(
- final boolean exists, final String fileName, final File filePath)
- throws InterruptedException {
+ final boolean exists, final String fileName, final File filePath) {
CriteriaHelper.pollInstrumentationThread(new Criteria(
String.format(Locale.US, "File, %s, expected to exist: %b", fileName, exists)) {
@Override

Powered by Google App Engine
This is Rietveld 408576698