1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/message_center/fake_message_center.h"
6 #include "ui/message_center/notification_list.h"
7
8 namespace message_center {
9
FakeMessageCenter()10 FakeMessageCenter::FakeMessageCenter() {
11 }
12
~FakeMessageCenter()13 FakeMessageCenter::~FakeMessageCenter() {
14 }
15
AddObserver(MessageCenterObserver * observer)16 void FakeMessageCenter::AddObserver(MessageCenterObserver* observer) {
17 }
18
RemoveObserver(MessageCenterObserver * observer)19 void FakeMessageCenter::RemoveObserver(MessageCenterObserver* observer) {
20 }
21
AddNotificationBlocker(NotificationBlocker * blocker)22 void FakeMessageCenter::AddNotificationBlocker(NotificationBlocker* blocker) {
23 }
24
RemoveNotificationBlocker(NotificationBlocker * blocker)25 void FakeMessageCenter::RemoveNotificationBlocker(
26 NotificationBlocker* blocker) {
27 }
28
NotificationCount() const29 size_t FakeMessageCenter::NotificationCount() const {
30 return 0u;
31 }
32
UnreadNotificationCount() const33 size_t FakeMessageCenter::UnreadNotificationCount() const {
34 return 0u;
35 }
36
HasPopupNotifications() const37 bool FakeMessageCenter::HasPopupNotifications() const {
38 return false;
39 }
40
IsQuietMode() const41 bool FakeMessageCenter::IsQuietMode() const {
42 return false;
43 }
44
HasClickedListener(const std::string & id)45 bool FakeMessageCenter::HasClickedListener(const std::string& id) {
46 return false;
47 }
48
FindVisibleNotificationById(const std::string & id)49 message_center::Notification* FakeMessageCenter::FindVisibleNotificationById(
50 const std::string& id) {
51 return NULL;
52 }
53
54 const NotificationList::Notifications&
GetVisibleNotifications()55 FakeMessageCenter::GetVisibleNotifications() {
56 return empty_notifications_;
57 }
58
59 NotificationList::PopupNotifications
GetPopupNotifications()60 FakeMessageCenter::GetPopupNotifications() {
61 return NotificationList::PopupNotifications();
62 }
63
AddNotification(scoped_ptr<Notification> notification)64 void FakeMessageCenter::AddNotification(scoped_ptr<Notification> notification) {
65 }
66
UpdateNotification(const std::string & old_id,scoped_ptr<Notification> new_notification)67 void FakeMessageCenter::UpdateNotification(
68 const std::string& old_id,
69 scoped_ptr<Notification> new_notification) {}
70
RemoveNotification(const std::string & id,bool by_user)71 void FakeMessageCenter::RemoveNotification(const std::string& id,
72 bool by_user) {
73 }
74
RemoveAllNotifications(bool by_user)75 void FakeMessageCenter::RemoveAllNotifications(bool by_user) {
76 }
77
RemoveAllVisibleNotifications(bool by_user)78 void FakeMessageCenter::RemoveAllVisibleNotifications(bool by_user) {
79 }
80
SetNotificationIcon(const std::string & notification_id,const gfx::Image & image)81 void FakeMessageCenter::SetNotificationIcon(const std::string& notification_id,
82 const gfx::Image& image) {
83 }
84
SetNotificationImage(const std::string & notification_id,const gfx::Image & image)85 void FakeMessageCenter::SetNotificationImage(const std::string& notification_id,
86 const gfx::Image& image) {
87 }
88
SetNotificationButtonIcon(const std::string & notification_id,int button_index,const gfx::Image & image)89 void FakeMessageCenter::SetNotificationButtonIcon(
90 const std::string& notification_id,
91 int button_index,
92 const gfx::Image& image) {
93 }
94
DisableNotificationsByNotifier(const NotifierId & notifier_id)95 void FakeMessageCenter::DisableNotificationsByNotifier(
96 const NotifierId& notifier_id) {
97 }
98
ClickOnNotification(const std::string & id)99 void FakeMessageCenter::ClickOnNotification(const std::string& id) {
100 }
101
ClickOnNotificationButton(const std::string & id,int button_index)102 void FakeMessageCenter::ClickOnNotificationButton(const std::string& id,
103 int button_index) {
104 }
105
MarkSinglePopupAsShown(const std::string & id,bool mark_notification_as_read)106 void FakeMessageCenter::MarkSinglePopupAsShown(const std::string& id,
107 bool mark_notification_as_read) {
108 }
109
DisplayedNotification(const std::string & id,const DisplaySource source)110 void FakeMessageCenter::DisplayedNotification(
111 const std::string& id,
112 const DisplaySource source) {
113 }
114
SetNotifierSettingsProvider(NotifierSettingsProvider * provider)115 void FakeMessageCenter::SetNotifierSettingsProvider(
116 NotifierSettingsProvider* provider) {
117 }
118
GetNotifierSettingsProvider()119 NotifierSettingsProvider* FakeMessageCenter::GetNotifierSettingsProvider() {
120 return NULL;
121 }
122
SetQuietMode(bool in_quiet_mode)123 void FakeMessageCenter::SetQuietMode(bool in_quiet_mode) {
124 }
125
EnterQuietModeWithExpire(const base::TimeDelta & expires_in)126 void FakeMessageCenter::EnterQuietModeWithExpire(
127 const base::TimeDelta& expires_in) {
128 }
129
SetVisibility(Visibility visible)130 void FakeMessageCenter::SetVisibility(Visibility visible) {
131 }
132
IsMessageCenterVisible() const133 bool FakeMessageCenter::IsMessageCenterVisible() const {
134 return false;
135 }
136
RestartPopupTimers()137 void FakeMessageCenter::RestartPopupTimers() {}
138
PausePopupTimers()139 void FakeMessageCenter::PausePopupTimers() {}
140
DisableTimersForTest()141 void FakeMessageCenter::DisableTimersForTest() {}
142
143 } // namespace message_center
144