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

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

Issue 2132023002: Store the notification id as a string for Android notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@event_api
Patch Set: re-add TODO Created 4 years, 5 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/NotificationPlatformBridgeIntentTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeIntentTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeIntentTest.java
index b5f5e78c8c59a6deaf77483a1c326dbd4e0b3e2d..1fe8efb5ad0602e3ae8a3b9f8af21f476b46e41c 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeIntentTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeIntentTest.java
@@ -101,7 +101,7 @@ public class NotificationPlatformBridgeIntentTest
.putExtra(EXTRA_NOTIFICATION_ID, NotificationPlatformBridge.PLATFORM_ID)
.putExtra(NotificationConstants.EXTRA_NOTIFICATION_TAG,
NotificationPlatformBridge.makePlatformTag(
- 42L /* persistentNotificationId */, "https://example.com",
+ "42" /* notificationId */, "https://example.com",
null /* tag */));
Preferences activity = ActivityUtils.waitForActivity(
@@ -137,9 +137,7 @@ public class NotificationPlatformBridgeIntentTest
Intent intent = new Intent(NotificationConstants.ACTION_CLICK_NOTIFICATION);
intent.setClass(context, NotificationService.Receiver.class);
- long persistentId = 42;
-
- intent.putExtra(NotificationConstants.EXTRA_PERSISTENT_NOTIFICATION_ID, persistentId);
+ intent.putExtra(NotificationConstants.EXTRA_NOTIFICATION_ID, "42");
intent.putExtra(NotificationConstants.EXTRA_NOTIFICATION_INFO_PROFILE_ID, "Default");
intent.putExtra(
NotificationConstants.EXTRA_NOTIFICATION_INFO_ORIGIN, "https://example.com");

Powered by Google App Engine
This is Rietveld 408576698