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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeTest.java

Issue 2332063002: Mark flaky chrome_public tests with @RetryOnFailure Batch 3 (Closed)
Patch Set: Created 4 years, 3 months 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/notifications/NotificationPlatformBridgeTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeTest.java
index 668f27c6ce0e46a157d6b88270aafffbf92394aa..c450cafdf41f7fb622e6779158d20e918c627b48 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeTest.java
@@ -19,6 +19,7 @@ import android.test.suitebuilder.annotation.MediumTest;
import org.chromium.base.ThreadUtils;
import org.chromium.base.annotations.SuppressFBWarnings;
import org.chromium.base.test.util.Feature;
+import org.chromium.base.test.util.RetryOnFailure;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.infobar.InfoBar;
import org.chromium.chrome.browser.preferences.PrefServiceBridge;
@@ -178,6 +179,7 @@ public class NotificationPlatformBridgeTest extends NotificationTestBase {
*/
@MediumTest
@Feature({"Browser", "Notifications"})
+ @RetryOnFailure
public void testDefaultNotificationProperties() throws Exception {
setNotificationContentSettingForCurrentOrigin(ContentSetting.ALLOW);
@@ -266,6 +268,7 @@ public class NotificationPlatformBridgeTest extends NotificationTestBase {
*/
@MediumTest
@Feature({"Browser", "Notifications"})
+ @RetryOnFailure
public void testNotificationVibratePreferenceDisabledDefault() throws Exception {
verifyVibrationNotRequestedWhenDisabledInPrefs("{}");
}
@@ -276,6 +279,7 @@ public class NotificationPlatformBridgeTest extends NotificationTestBase {
*/
@MediumTest
@Feature({"Browser", "Notifications"})
+ @RetryOnFailure
public void testNotificationVibratePreferenceDisabledCustomPattern() throws Exception {
verifyVibrationNotRequestedWhenDisabledInPrefs("{ vibrate: 42 }");
}
@@ -348,6 +352,7 @@ public class NotificationPlatformBridgeTest extends NotificationTestBase {
*/
@MediumTest
@Feature({"Browser", "Notifications"})
+ @RetryOnFailure
public void testShowNotificationWithIcon() throws Exception {
setNotificationContentSettingForCurrentOrigin(ContentSetting.ALLOW);
@@ -368,6 +373,7 @@ public class NotificationPlatformBridgeTest extends NotificationTestBase {
*/
@MediumTest
@Feature({"Browser", "Notifications"})
+ @RetryOnFailure
public void testShowNotificationWithoutIcon() throws Exception {
setNotificationContentSettingForCurrentOrigin(ContentSetting.ALLOW);
@@ -450,6 +456,7 @@ public class NotificationPlatformBridgeTest extends NotificationTestBase {
*/
@LargeTest
@Feature({"Browser", "Notifications"})
+ @RetryOnFailure
public void testNotificationContentIntentClosesNotification() throws Exception {
setNotificationContentSettingForCurrentOrigin(ContentSetting.ALLOW);
@@ -472,6 +479,7 @@ public class NotificationPlatformBridgeTest extends NotificationTestBase {
*/
@LargeTest
@Feature({"Browser", "Notifications"})
+ @RetryOnFailure
public void testNotificationContentIntentCreatesTab() throws Exception {
setNotificationContentSettingForCurrentOrigin(ContentSetting.ALLOW);

Powered by Google App Engine
This is Rietveld 408576698