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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/push_messaging/PushMessagingTest.java

Issue 2336803005: Mark flaky chrome_public tests with @RetryOnFailure Batch 5 (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/push_messaging/PushMessagingTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/push_messaging/PushMessagingTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/push_messaging/PushMessagingTest.java
index b8172538e5a61e6a8796f4434b5988794e32bf61..c132003683bd1f4c678b1d58aff84ec6311e3243 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/push_messaging/PushMessagingTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/push_messaging/PushMessagingTest.java
@@ -18,6 +18,7 @@ import android.util.Pair;
import org.chromium.base.ThreadUtils;
import org.chromium.base.library_loader.ProcessInitException;
import org.chromium.base.test.util.Feature;
+import org.chromium.base.test.util.RetryOnFailure;
import org.chromium.chrome.browser.infobar.InfoBar;
import org.chromium.chrome.browser.init.ChromeBrowserInitializer;
import org.chromium.chrome.browser.notifications.NotificationTestBase;
@@ -188,6 +189,7 @@ public class PushMessagingTest
*/
@MediumTest
@Feature({"Browser", "PushMessaging"})
+ @RetryOnFailure
public void testPushAndShowNotification() throws InterruptedException, TimeoutException {
setNotificationContentSettingForCurrentOrigin(ContentSetting.ALLOW);
runScriptAndWaitForTitle("subscribePush()", "subscribe ok");
@@ -206,6 +208,7 @@ public class PushMessagingTest
*/
@LargeTest
@Feature({"Browser", "PushMessaging"})
+ @RetryOnFailure
public void testDefaultNotification() throws InterruptedException, TimeoutException {
// Start off using the tab loaded in setUp().
assertEquals(1, getActivity().getCurrentTabModel().getCount());

Powered by Google App Engine
This is Rietveld 408576698