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

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

Issue 1313363006: Plumb requireInteraction to PlatformNotificationData & database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@constructor
Patch Set: Fix includes Created 5 years, 4 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 4ece50d88aa9c14fbaa5cce4c682e83db4c1dbaa..e2bf7d4c08e682dac096dccea3ea070889e05fcc 100644
--- a/content/browser/notifications/notification_database_data_unittest.cc
+++ b/content/browser/notifications/notification_database_data_unittest.cc
@@ -43,6 +43,7 @@ TEST(NotificationDatabaseDataTest, SerializeAndDeserializeData) {
notification_data.icon = GURL(kNotificationIconUrl);
notification_data.vibration_pattern = vibration_pattern;
notification_data.silent = true;
+ notification_data.require_interaction = true;
notification_data.data = developer_data;
for (size_t i = 0; i < kPlatformNotificationMaxActions; i++) {
PlatformNotificationAction notification_action;
@@ -88,6 +89,8 @@ TEST(NotificationDatabaseDataTest, SerializeAndDeserializeData) {
testing::ElementsAreArray(kNotificationVibrationPattern));
EXPECT_EQ(notification_data.silent, copied_notification_data.silent);
+ EXPECT_EQ(notification_data.require_interaction,
+ copied_notification_data.require_interaction);
ASSERT_EQ(developer_data.size(), copied_notification_data.data.size());
for (size_t i = 0; i < developer_data.size(); ++i)

Powered by Google App Engine
This is Rietveld 408576698