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

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

Issue 1395093002: Fix system notifications incorrectly marked as type WEB_PAGE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timeout
Patch Set: Created 5 years, 2 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/message_center_notifications_unittest.cc
diff --git a/chrome/browser/notifications/message_center_notifications_unittest.cc b/chrome/browser/notifications/message_center_notifications_unittest.cc
index de4e65404cf6c8283755cf67f872c836b44510b2..99cb8d46d27fe3c7ad12f233e1276c1bd592aa67 100644
--- a/chrome/browser/notifications/message_center_notifications_unittest.cc
+++ b/chrome/browser/notifications/message_center_notifications_unittest.cc
@@ -22,6 +22,7 @@
#include "ui/message_center/message_center_impl.h"
#include "ui/message_center/message_center_tray.h"
#include "ui/message_center/message_center_types.h"
+#include "ui/message_center/notification_types.h"
#include "ui/message_center/notifier_settings.h"
#if defined(OS_CHROMEOS)
@@ -77,12 +78,15 @@ class MessageCenterNotificationManagerTest : public BrowserWithTestWindowTest {
const ::Notification GetANotification(const std::string& id) {
return ::Notification(
- GURL("chrome-extension://adflkjsdflkdsfdsflkjdsflkdjfs"),
+ message_center::NOTIFICATION_TYPE_SIMPLE,
base::string16(),
base::string16(),
gfx::Image(),
+ NotifierId(NotifierId::APPLICATION, "adflkjsdflkdsfdsflkjdsflkdjfs"),
base::string16(),
+ GURL("chrome-extension://adflkjsdflkdsfdsflkjdsflkdjfs"),
id,
+ message_center::RichNotificationData(),
new MockNotificationDelegate(id));
}

Powered by Google App Engine
This is Rietveld 408576698