Add ICU message format support
[chromium-blink-merge.git] / ui / message_center / fake_message_center.cc
blob946b2c75ba90ea2e1257eece389c6ae49da44c30
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.
5 #include "ui/message_center/fake_message_center.h"
6 #include "ui/message_center/notification_list.h"
8 namespace message_center {
10 FakeMessageCenter::FakeMessageCenter() {
13 FakeMessageCenter::~FakeMessageCenter() {
16 void FakeMessageCenter::AddObserver(MessageCenterObserver* observer) {
19 void FakeMessageCenter::RemoveObserver(MessageCenterObserver* observer) {
22 void FakeMessageCenter::AddNotificationBlocker(NotificationBlocker* blocker) {
25 void FakeMessageCenter::RemoveNotificationBlocker(
26 NotificationBlocker* blocker) {
29 size_t FakeMessageCenter::NotificationCount() const {
30 return 0u;
33 size_t FakeMessageCenter::UnreadNotificationCount() const {
34 return 0u;
37 bool FakeMessageCenter::HasPopupNotifications() const {
38 return false;
41 bool FakeMessageCenter::IsQuietMode() const {
42 return false;
45 bool FakeMessageCenter::HasClickedListener(const std::string& id) {
46 return false;
49 message_center::Notification* FakeMessageCenter::FindVisibleNotificationById(
50 const std::string& id) {
51 return NULL;
54 const NotificationList::Notifications&
55 FakeMessageCenter::GetVisibleNotifications() {
56 return empty_notifications_;
59 NotificationList::PopupNotifications
60 FakeMessageCenter::GetPopupNotifications() {
61 return NotificationList::PopupNotifications();
64 void FakeMessageCenter::AddNotification(scoped_ptr<Notification> notification) {
67 void FakeMessageCenter::UpdateNotification(
68 const std::string& old_id,
69 scoped_ptr<Notification> new_notification) {}
71 void FakeMessageCenter::RemoveNotification(const std::string& id,
72 bool by_user) {
75 void FakeMessageCenter::RemoveAllNotifications(bool by_user) {
78 void FakeMessageCenter::RemoveAllVisibleNotifications(bool by_user) {
81 void FakeMessageCenter::SetNotificationIcon(const std::string& notification_id,
82 const gfx::Image& image) {
85 void FakeMessageCenter::SetNotificationImage(const std::string& notification_id,
86 const gfx::Image& image) {
89 void FakeMessageCenter::SetNotificationButtonIcon(
90 const std::string& notification_id,
91 int button_index,
92 const gfx::Image& image) {
95 void FakeMessageCenter::DisableNotificationsByNotifier(
96 const NotifierId& notifier_id) {
99 void FakeMessageCenter::ClickOnNotification(const std::string& id) {
102 void FakeMessageCenter::ClickOnNotificationButton(const std::string& id,
103 int button_index) {
106 void FakeMessageCenter::MarkSinglePopupAsShown(const std::string& id,
107 bool mark_notification_as_read) {
110 void FakeMessageCenter::DisplayedNotification(
111 const std::string& id,
112 const DisplaySource source) {
115 void FakeMessageCenter::SetNotifierSettingsProvider(
116 NotifierSettingsProvider* provider) {
119 NotifierSettingsProvider* FakeMessageCenter::GetNotifierSettingsProvider() {
120 return NULL;
123 void FakeMessageCenter::SetQuietMode(bool in_quiet_mode) {
126 void FakeMessageCenter::EnterQuietModeWithExpire(
127 const base::TimeDelta& expires_in) {
130 void FakeMessageCenter::SetVisibility(Visibility visible) {
133 bool FakeMessageCenter::IsMessageCenterVisible() const {
134 return false;
137 void FakeMessageCenter::RestartPopupTimers() {}
139 void FakeMessageCenter::PausePopupTimers() {}
141 void FakeMessageCenter::DisableTimersForTest() {}
143 } // namespace message_center