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

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

Issue 19027005: Hide notifications popups when entering fullscreen mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix remaining testing issues Created 7 years, 4 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
« no previous file with comments | « ui/message_center/message_center_tray_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 13 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « ui/message_center/message_center_tray_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698