Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: ui/message_center/message_center_tray_unittest.cc

Issue 18247002: Remove the most obvious dead code from message center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move MessageCenterButtonBar into cc file to hide implementation. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/message_center_tray.h" 5 #include "ui/message_center/message_center_tray.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "ui/message_center/message_center.h" 9 #include "ui/message_center/message_center.h"
10 #include "ui/message_center/notification_types.h" 10 #include "ui/message_center/notification_types.h"
11 11
12 namespace message_center { 12 namespace message_center {
13 namespace { 13 namespace {
14 14
15 class MockDelegate : public MessageCenterTrayDelegate { 15 class MockDelegate : public MessageCenterTrayDelegate {
16 public: 16 public:
17 MockDelegate() 17 MockDelegate()
18 : show_popups_success_(true), 18 : show_popups_success_(true),
19 show_message_center_success_(true) {} 19 show_message_center_success_(true) {}
20 virtual ~MockDelegate() {} 20 virtual ~MockDelegate() {}
21 virtual void OnMessageCenterTrayChanged() OVERRIDE {} 21 virtual void OnMessageCenterTrayChanged() OVERRIDE {}
22 virtual bool ShowPopups() OVERRIDE { 22 virtual bool ShowPopups() OVERRIDE {
23 return show_message_center_success_; 23 return show_message_center_success_;
24 } 24 }
25 virtual void HidePopups() OVERRIDE {} 25 virtual void HidePopups() OVERRIDE {}
26 virtual void UpdatePopups() OVERRIDE {}
27 virtual bool ShowMessageCenter() OVERRIDE { 26 virtual bool ShowMessageCenter() OVERRIDE {
28 return show_popups_success_; 27 return show_popups_success_;
29 } 28 }
30 virtual void HideMessageCenter() OVERRIDE {} 29 virtual void HideMessageCenter() OVERRIDE {}
31 virtual bool ShowNotifierSettings() OVERRIDE { 30 virtual bool ShowNotifierSettings() OVERRIDE {
32 return false; 31 return false;
33 } 32 }
34 33
35 bool show_popups_success_; 34 bool show_popups_success_;
36 bool show_message_center_success_; 35 bool show_message_center_success_;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 ASSERT_FALSE(message_center_tray_->popups_visible()); 219 ASSERT_FALSE(message_center_tray_->popups_visible());
221 ASSERT_FALSE(message_center_tray_->message_center_visible()); 220 ASSERT_FALSE(message_center_tray_->message_center_visible());
222 221
223 message_center_tray_->HidePopupBubble(); 222 message_center_tray_->HidePopupBubble();
224 223
225 ASSERT_FALSE(message_center_tray_->popups_visible()); 224 ASSERT_FALSE(message_center_tray_->popups_visible());
226 ASSERT_FALSE(message_center_tray_->message_center_visible()); 225 ASSERT_FALSE(message_center_tray_->message_center_visible());
227 } 226 }
228 227
229 } // namespace message_center 228 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/message_center/message_center_tray_delegate.h ('k') | ui/message_center/views/message_bubble_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698