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

Unified Diff: content/browser/notifications/notification_database_data_unittest.cc

Issue 1656243002: Implementation of renotify flag for Notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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: content/browser/notifications/notification_database_data_unittest.cc
diff --git a/content/browser/notifications/notification_database_data_unittest.cc b/content/browser/notifications/notification_database_data_unittest.cc
index d8422057b092e4811cbac629ac403ef64176cc72..94b94b8c7142a36b0bd550b12bf645a9e15b56f3 100644
--- a/content/browser/notifications/notification_database_data_unittest.cc
+++ b/content/browser/notifications/notification_database_data_unittest.cc
@@ -50,6 +50,7 @@ TEST(NotificationDatabaseDataTest, SerializeAndDeserializeData) {
notification_data.icon = GURL(kNotificationIconUrl);
notification_data.vibration_pattern = vibration_pattern;
notification_data.timestamp = base::Time::FromJsTime(kNotificationTimestamp);
+ notification_data.renotify = true;
notification_data.silent = true;
notification_data.require_interaction = true;
notification_data.data = developer_data;
@@ -98,6 +99,7 @@ TEST(NotificationDatabaseDataTest, SerializeAndDeserializeData) {
testing::ElementsAreArray(kNotificationVibrationPattern));
EXPECT_EQ(notification_data.timestamp, copied_notification_data.timestamp);
+ EXPECT_EQ(notification_data.renotify, copied_notification_data.renotify);
EXPECT_EQ(notification_data.silent, copied_notification_data.silent);
EXPECT_EQ(notification_data.require_interaction,
copied_notification_data.require_interaction);

Powered by Google App Engine
This is Rietveld 408576698