OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/message_center/fake_message_center.h" | 5 #include "ui/message_center/fake_message_center.h" |
6 #include "ui/message_center/notification_list.h" | 6 #include "ui/message_center/notification_list.h" |
7 | 7 |
8 namespace message_center { | 8 namespace message_center { |
9 | 9 |
10 FakeMessageCenter::FakeMessageCenter() { | 10 FakeMessageCenter::FakeMessageCenter() { |
(...skipping 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 | 32 |
33 size_t FakeMessageCenter::UnreadNotificationCount() const { | 33 size_t FakeMessageCenter::UnreadNotificationCount() const { |
34 return 0u; | 34 return 0u; |
35 } | 35 } |
36 | 36 |
37 bool FakeMessageCenter::HasPopupNotifications() const { | 37 bool FakeMessageCenter::HasPopupNotifications() const { |
38 return false; | 38 return false; |
39 } | 39 } |
40 | 40 |
41 bool FakeMessageCenter::HasNotification(const std::string& id) { | |
42 return false; | |
43 } | |
44 | |
45 bool FakeMessageCenter::IsQuietMode() const { | 41 bool FakeMessageCenter::IsQuietMode() const { |
46 return false; | 42 return false; |
47 } | 43 } |
48 | 44 |
49 bool FakeMessageCenter::HasClickedListener(const std::string& id) { | 45 bool FakeMessageCenter::HasClickedListener(const std::string& id) { |
50 return false; | 46 return false; |
51 } | 47 } |
52 | 48 |
| 49 message_center::Notification* FakeMessageCenter::FindVisibleNotificationById( |
| 50 const std::string& id) { |
| 51 return NULL; |
| 52 } |
| 53 |
53 const NotificationList::Notifications& | 54 const NotificationList::Notifications& |
54 FakeMessageCenter::GetVisibleNotifications() { | 55 FakeMessageCenter::GetVisibleNotifications() { |
55 return empty_notifications_; | 56 return empty_notifications_; |
56 } | 57 } |
57 | 58 |
58 NotificationList::PopupNotifications | 59 NotificationList::PopupNotifications |
59 FakeMessageCenter::GetPopupNotifications() { | 60 FakeMessageCenter::GetPopupNotifications() { |
60 return NotificationList::PopupNotifications(); | 61 return NotificationList::PopupNotifications(); |
61 } | 62 } |
62 | 63 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 return false; | 134 return false; |
134 } | 135 } |
135 | 136 |
136 void FakeMessageCenter::RestartPopupTimers() {} | 137 void FakeMessageCenter::RestartPopupTimers() {} |
137 | 138 |
138 void FakeMessageCenter::PausePopupTimers() {} | 139 void FakeMessageCenter::PausePopupTimers() {} |
139 | 140 |
140 void FakeMessageCenter::DisableTimersForTest() {} | 141 void FakeMessageCenter::DisableTimersForTest() {} |
141 | 142 |
142 } // namespace message_center | 143 } // namespace message_center |
OLD | NEW |