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

Unified Diff: ui/message_center/fake_message_center.h

Issue 15582004: Move NotificationDelegate into message_center. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the ever-changing Mac unit tests. Created 7 years, 7 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
« no previous file with comments | « ui/message_center/cocoa/tray_view_controller_unittest.mm ('k') | ui/message_center/fake_message_center.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/fake_message_center.h
diff --git a/ui/message_center/fake_message_center.h b/ui/message_center/fake_message_center.h
index c9c2d2abf9ff82f4fc3d63c5de445007bcd1b4d8..65ddc4bbd10b04c56a3d0c9bf85367aa51161b87 100644
--- a/ui/message_center/fake_message_center.h
+++ b/ui/message_center/fake_message_center.h
@@ -9,6 +9,8 @@
namespace message_center {
+class NotificationDelegate;
+
// MessageCenter implementation of doing nothing. Useful for tests.
class FakeMessageCenter : public MessageCenter {
public:
@@ -27,20 +29,20 @@ class FakeMessageCenter : public MessageCenter {
virtual bool HasClickedListener(const std::string& id) OVERRIDE;
virtual const NotificationList::Notifications& GetNotifications() OVERRIDE;
virtual NotificationList::PopupNotifications GetPopupNotifications() OVERRIDE;
- virtual void AddNotification(
- NotificationType type,
- const std::string& id,
- const string16& title,
- const string16& message,
- const string16& display_source,
- const std::string& extension_id,
- const base::DictionaryValue* optional_fields) OVERRIDE;
- virtual void UpdateNotification(
- const std::string& old_id,
- const std::string& new_id,
- const string16& title,
- const string16& message,
- const base::DictionaryValue* optional_fields) OVERRIDE;
+ virtual void AddNotification(NotificationType type,
+ const std::string& id,
+ const string16& title,
+ const string16& message,
+ const string16& display_source,
+ const std::string& extension_id,
+ const base::DictionaryValue* optional_fields,
+ NotificationDelegate* delegate) OVERRIDE;
+ virtual void UpdateNotification(const std::string& old_id,
+ const std::string& new_id,
+ const string16& title,
+ const string16& message,
+ const base::DictionaryValue* optional_fields,
+ NotificationDelegate* delegate) OVERRIDE;
virtual void RemoveNotification(const std::string& id, bool by_user) OVERRIDE;
virtual void RemoveAllNotifications(bool by_user) OVERRIDE;
virtual void SetNotificationIcon(const std::string& notification_id,
« no previous file with comments | « ui/message_center/cocoa/tray_view_controller_unittest.mm ('k') | ui/message_center/fake_message_center.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698