OLD | NEW |
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" |
(...skipping 13 matching lines...) Expand all Loading... |
24 } | 24 } |
25 virtual void HidePopups() OVERRIDE {} | 25 virtual void HidePopups() OVERRIDE {} |
26 virtual bool ShowMessageCenter() OVERRIDE { | 26 virtual bool ShowMessageCenter() OVERRIDE { |
27 return show_popups_success_; | 27 return show_popups_success_; |
28 } | 28 } |
29 virtual void HideMessageCenter() OVERRIDE {} | 29 virtual void HideMessageCenter() OVERRIDE {} |
30 virtual bool ShowNotifierSettings() OVERRIDE { | 30 virtual bool ShowNotifierSettings() OVERRIDE { |
31 return false; | 31 return false; |
32 } | 32 } |
33 | 33 |
| 34 virtual MessageCenterTray* GetMessageCenterTray() OVERRIDE { |
| 35 return NULL; |
| 36 } |
| 37 |
34 bool show_popups_success_; | 38 bool show_popups_success_; |
35 bool show_message_center_success_; | 39 bool show_message_center_success_; |
36 | 40 |
37 private: | 41 private: |
38 DISALLOW_COPY_AND_ASSIGN(MockDelegate); | 42 DISALLOW_COPY_AND_ASSIGN(MockDelegate); |
39 }; | 43 }; |
40 | 44 |
41 class MessageCenterTrayTest : public testing::Test { | 45 class MessageCenterTrayTest : public testing::Test { |
42 public: | 46 public: |
43 MessageCenterTrayTest() {} | 47 MessageCenterTrayTest() {} |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 ASSERT_FALSE(message_center_tray_->popups_visible()); | 223 ASSERT_FALSE(message_center_tray_->popups_visible()); |
220 ASSERT_FALSE(message_center_tray_->message_center_visible()); | 224 ASSERT_FALSE(message_center_tray_->message_center_visible()); |
221 | 225 |
222 message_center_tray_->HidePopupBubble(); | 226 message_center_tray_->HidePopupBubble(); |
223 | 227 |
224 ASSERT_FALSE(message_center_tray_->popups_visible()); | 228 ASSERT_FALSE(message_center_tray_->popups_visible()); |
225 ASSERT_FALSE(message_center_tray_->message_center_visible()); | 229 ASSERT_FALSE(message_center_tray_->message_center_visible()); |
226 } | 230 } |
227 | 231 |
228 } // namespace message_center | 232 } // namespace message_center |
OLD | NEW |