Update path of checkdeps to buildtools checkout
[chromium-blink-merge.git] / ui / message_center / fake_message_center.cc
blob45bf1b0c8e4502575fa2cf623debd0c599eff643
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::HasNotification(const std::string& id) {
42 return false;
45 bool FakeMessageCenter::IsQuietMode() const {
46 return false;
49 bool FakeMessageCenter::HasClickedListener(const std::string& id) {
50 return false;
53 const NotificationList::Notifications&
54 FakeMessageCenter::GetVisibleNotifications() {
55 return empty_notifications_;
58 NotificationList::PopupNotifications
59 FakeMessageCenter::GetPopupNotifications() {
60 return NotificationList::PopupNotifications();
63 void FakeMessageCenter::AddNotification(scoped_ptr<Notification> notification) {
66 void FakeMessageCenter::UpdateNotification(
67 const std::string& old_id,
68 scoped_ptr<Notification> new_notification) {}
70 void FakeMessageCenter::RemoveNotification(const std::string& id,
71 bool by_user) {
74 void FakeMessageCenter::RemoveAllNotifications(bool by_user) {
77 void FakeMessageCenter::RemoveAllVisibleNotifications(bool by_user) {
80 void FakeMessageCenter::SetNotificationIcon(const std::string& notification_id,
81 const gfx::Image& image) {
84 void FakeMessageCenter::SetNotificationImage(const std::string& notification_id,
85 const gfx::Image& image) {
88 void FakeMessageCenter::SetNotificationButtonIcon(
89 const std::string& notification_id,
90 int button_index,
91 const gfx::Image& image) {
94 void FakeMessageCenter::DisableNotificationsByNotifier(
95 const NotifierId& notifier_id) {
98 void FakeMessageCenter::ClickOnNotification(const std::string& id) {
101 void FakeMessageCenter::ClickOnNotificationButton(const std::string& id,
102 int button_index) {
105 void FakeMessageCenter::MarkSinglePopupAsShown(const std::string& id,
106 bool mark_notification_as_read) {
109 void FakeMessageCenter::DisplayedNotification(
110 const std::string& id,
111 const DisplaySource source) {
114 void FakeMessageCenter::SetNotifierSettingsProvider(
115 NotifierSettingsProvider* provider) {
118 NotifierSettingsProvider* FakeMessageCenter::GetNotifierSettingsProvider() {
119 return NULL;
122 void FakeMessageCenter::SetQuietMode(bool in_quiet_mode) {
125 void FakeMessageCenter::EnterQuietModeWithExpire(
126 const base::TimeDelta& expires_in) {
129 void FakeMessageCenter::SetVisibility(Visibility visible) {
132 bool FakeMessageCenter::IsMessageCenterVisible() const {
133 return false;
136 void FakeMessageCenter::RestartPopupTimers() {}
138 void FakeMessageCenter::PausePopupTimers() {}
140 void FakeMessageCenter::DisableTimersForTest() {}
142 } // namespace message_center