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

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

Issue 2628723003: Android notifications: set group for push notifications (Closed)
Patch Set: rebase Created 3 years, 11 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/CustomNotificationBuilderTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java
index 75f70c676949206eababd75b98bbd2a6d2b781b0..586bc49167896ed36e8256e0f43ba03a0f606c57 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java
@@ -93,6 +93,10 @@ public class CustomNotificationBuilderTest extends NativeLibraryTestBase {
assertEquals("title", NotificationTestUtil.getExtraTitle(notification));
assertEquals("body", NotificationTestUtil.getExtraText(notification));
assertEquals("origin", NotificationTestUtil.getExtraSubText(notification));
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT_WATCH) {
+ assertEquals(
+ NotificationConstants.GROUP_WEB_PREFIX + "origin", notification.getGroup());
+ }
assertEquals("ticker", notification.tickerText.toString());
assertEquals(Notification.DEFAULT_ALL, notification.defaults);

Powered by Google App Engine
This is Rietveld 408576698