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

Unified Diff: chrome/browser/notifications/platform_notification_service_unittest.cc

Issue 965573002: Implement support for silent notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 5 years, 9 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/browser/notifications/platform_notification_service_unittest.cc
diff --git a/chrome/browser/notifications/platform_notification_service_unittest.cc b/chrome/browser/notifications/platform_notification_service_unittest.cc
index 7145c26816b7202ef1c8caebcd248c72acda5ab1..55108c4b2381daa5fc6359c08b19759724b1e8dd 100644
--- a/chrome/browser/notifications/platform_notification_service_unittest.cc
+++ b/chrome/browser/notifications/platform_notification_service_unittest.cc
@@ -153,6 +153,7 @@ TEST_F(PlatformNotificationServiceTest, DisplayPageNotificationMatches) {
content::PlatformNotificationData notification_data;
notification_data.title = base::ASCIIToUTF16("My notification's title");
notification_data.body = base::ASCIIToUTF16("Hello, world!");
+ notification_data.silent = true;
MockDesktopNotificationDelegate* delegate
= new MockDesktopNotificationDelegate();
@@ -171,6 +172,7 @@ TEST_F(PlatformNotificationServiceTest, DisplayPageNotificationMatches) {
base::UTF16ToUTF8(notification.title()));
EXPECT_EQ("Hello, world!",
base::UTF16ToUTF8(notification.message()));
+ EXPECT_TRUE(notification.silent());
}
TEST_F(PlatformNotificationServiceTest, DisplayNameForOrigin) {

Powered by Google App Engine
This is Rietveld 408576698