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