fake_message_center.cc revision a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7
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 8namespace message_center { 9 10FakeMessageCenter::FakeMessageCenter() { 11} 12 13FakeMessageCenter::~FakeMessageCenter() { 14} 15 16void FakeMessageCenter::AddObserver(MessageCenterObserver* observer) { 17} 18 19void FakeMessageCenter::RemoveObserver(MessageCenterObserver* observer) { 20} 21 22void FakeMessageCenter::AddNotificationBlocker(NotificationBlocker* blocker) { 23} 24 25void FakeMessageCenter::RemoveNotificationBlocker( 26 NotificationBlocker* blocker) { 27} 28 29size_t FakeMessageCenter::NotificationCount() const { 30 return 0u; 31} 32 33size_t FakeMessageCenter::UnreadNotificationCount() const { 34 return 0u; 35} 36 37bool FakeMessageCenter::HasPopupNotifications() const { 38 return false; 39} 40 41bool FakeMessageCenter::HasNotification(const std::string& id) { 42 return false; 43} 44 45bool FakeMessageCenter::IsQuietMode() const { 46 return false; 47} 48 49bool FakeMessageCenter::HasClickedListener(const std::string& id) { 50 return false; 51} 52 53const NotificationList::Notifications& 54FakeMessageCenter::GetVisibleNotifications() { 55 return empty_notifications_; 56} 57 58NotificationList::PopupNotifications 59 FakeMessageCenter::GetPopupNotifications() { 60 return NotificationList::PopupNotifications(); 61} 62 63void FakeMessageCenter::AddNotification(scoped_ptr<Notification> notification) { 64} 65 66void FakeMessageCenter::UpdateNotification( 67 const std::string& old_id, 68 scoped_ptr<Notification> new_notification) {} 69 70void FakeMessageCenter::RemoveNotification(const std::string& id, 71 bool by_user) { 72} 73 74void FakeMessageCenter::RemoveAllNotifications(bool by_user) { 75} 76 77void FakeMessageCenter::RemoveAllVisibleNotifications(bool by_user) { 78} 79 80void FakeMessageCenter::SetNotificationIcon(const std::string& notification_id, 81 const gfx::Image& image) { 82} 83 84void FakeMessageCenter::SetNotificationImage(const std::string& notification_id, 85 const gfx::Image& image) { 86} 87 88void FakeMessageCenter::SetNotificationButtonIcon( 89 const std::string& notification_id, 90 int button_index, 91 const gfx::Image& image) { 92} 93 94void FakeMessageCenter::DisableNotificationsByNotifier( 95 const NotifierId& notifier_id) { 96} 97 98void FakeMessageCenter::ExpandNotification(const std::string& id) { 99} 100 101void FakeMessageCenter::ClickOnNotification(const std::string& id) { 102} 103 104void FakeMessageCenter::ClickOnNotificationButton(const std::string& id, 105 int button_index) { 106} 107 108void FakeMessageCenter::MarkSinglePopupAsShown(const std::string& id, 109 bool mark_notification_as_read) { 110} 111 112void FakeMessageCenter::DisplayedNotification(const std::string& id) { 113} 114 115void FakeMessageCenter::SetNotifierSettingsProvider( 116 NotifierSettingsProvider* provider) { 117} 118 119NotifierSettingsProvider* FakeMessageCenter::GetNotifierSettingsProvider() { 120 return NULL; 121} 122 123void FakeMessageCenter::SetQuietMode(bool in_quiet_mode) { 124} 125 126void FakeMessageCenter::EnterQuietModeWithExpire( 127 const base::TimeDelta& expires_in) { 128} 129 130void FakeMessageCenter::SetVisibility(Visibility visible) { 131} 132 133bool FakeMessageCenter::IsMessageCenterVisible() const { 134 return false; 135} 136 137void FakeMessageCenter::RestartPopupTimers() {} 138 139void FakeMessageCenter::PausePopupTimers() {} 140 141void FakeMessageCenter::DisableTimersForTest() {} 142 143} // namespace message_center 144