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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.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
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java
index 76c0cf2b421d99717284d48717b1990c8fba4bf1..ee079e9f02dd3e32342d1b0ce256e8790f552e88 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java
@@ -93,6 +93,10 @@ public class StandardNotificationBuilderTest 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());
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
// EXTRA_TEMPLATE was added in Android L; style cannot be verified in earlier versions.
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698