| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const NotificationList::Notifications& | 54 const NotificationList::Notifications& |
| 55 FakeMessageCenter::GetVisibleNotifications() { | 55 FakeMessageCenter::GetVisibleNotifications() { |
| 56 return empty_notifications_; | 56 return empty_notifications_; |
| 57 } | 57 } |
| 58 | 58 |
| 59 NotificationList::PopupNotifications | 59 NotificationList::PopupNotifications |
| 60 FakeMessageCenter::GetPopupNotifications() { | 60 FakeMessageCenter::GetPopupNotifications() { |
| 61 return NotificationList::PopupNotifications(); | 61 return NotificationList::PopupNotifications(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void FakeMessageCenter::AddNotification(scoped_ptr<Notification> notification) { | 64 void FakeMessageCenter::AddNotification( |
| 65 } | 65 std::unique_ptr<Notification> notification) {} |
| 66 | 66 |
| 67 void FakeMessageCenter::UpdateNotification( | 67 void FakeMessageCenter::UpdateNotification( |
| 68 const std::string& old_id, | 68 const std::string& old_id, |
| 69 scoped_ptr<Notification> new_notification) {} | 69 std::unique_ptr<Notification> new_notification) {} |
| 70 | 70 |
| 71 void FakeMessageCenter::RemoveNotification(const std::string& id, | 71 void FakeMessageCenter::RemoveNotification(const std::string& id, |
| 72 bool by_user) { | 72 bool by_user) { |
| 73 } | 73 } |
| 74 | 74 |
| 75 void FakeMessageCenter::RemoveAllNotifications(bool by_user, RemoveType type) {} | 75 void FakeMessageCenter::RemoveAllNotifications(bool by_user, RemoveType type) {} |
| 76 | 76 |
| 77 void FakeMessageCenter::SetNotificationIcon(const std::string& notification_id, | 77 void FakeMessageCenter::SetNotificationIcon(const std::string& notification_id, |
| 78 const gfx::Image& image) { | 78 const gfx::Image& image) { |
| 79 } | 79 } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 void FakeMessageCenter::RestartPopupTimers() {} | 135 void FakeMessageCenter::RestartPopupTimers() {} |
| 136 | 136 |
| 137 void FakeMessageCenter::PausePopupTimers() {} | 137 void FakeMessageCenter::PausePopupTimers() {} |
| 138 | 138 |
| 139 void FakeMessageCenter::DisableTimersForTest() {} | 139 void FakeMessageCenter::DisableTimersForTest() {} |
| 140 | 140 |
| 141 void FakeMessageCenter::EnableChangeQueueForTest(bool enabled) {} | 141 void FakeMessageCenter::EnableChangeQueueForTest(bool enabled) {} |
| 142 | 142 |
| 143 } // namespace message_center | 143 } // namespace message_center |
| OLD | NEW |