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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.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/infobar/InfoBarTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java
index 5228deef1ac0887c2811e60ad9faa101e5196367..179fb597560c0ac1e28a6f46568b0247d81f34c6 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java
@@ -58,7 +58,7 @@ public class InfoBarTest extends ChromeActivityTestCaseBase<ChromeActivity> {
private EmbeddedTestServer mTestServer;
private InfoBarTestAnimationListener mListener;
- private void waitUntilNoInfoBarsExist() throws InterruptedException {
+ private void waitUntilNoInfoBarsExist() {
CriteriaHelper.pollUiThread(new Criteria() {
@Override
public boolean isSatisfied() {
@@ -67,7 +67,7 @@ public class InfoBarTest extends ChromeActivityTestCaseBase<ChromeActivity> {
});
}
- private void waitUntilDataReductionPromoInfoBarAppears() throws InterruptedException {
+ private void waitUntilDataReductionPromoInfoBarAppears() {
CriteriaHelper.pollUiThread(new Criteria() {
@Override
public boolean isSatisfied() {
@@ -208,7 +208,7 @@ public class InfoBarTest extends ChromeActivityTestCaseBase<ChromeActivity> {
@CommandLineFlags.Add("force-fieldtrials=DataCompressionProxyPromoVisibility/Enabled")
@Feature({"Browser", "Main"})
@RetryOnFailure
- public void testDataReductionPromoInfoBar() throws InterruptedException {
+ public void testDataReductionPromoInfoBar() {
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
public void run() {
@@ -269,7 +269,7 @@ public class InfoBarTest extends ChromeActivityTestCaseBase<ChromeActivity> {
@CommandLineFlags.Add("force-fieldtrials=DataCompressionProxyPromoVisibility/Enabled")
@Feature({"Browser", "Main"})
@RetryOnFailure
- public void testDataReductionPromoInfoBarDismissed() throws InterruptedException {
+ public void testDataReductionPromoInfoBarDismissed() {
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
public void run() {

Powered by Google App Engine
This is Rietveld 408576698