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

Side by Side Diff: chrome/browser/ui/views/message_center/web_notification_tray_browsertest.cc

Issue 459123002: Remove status icon if there are no more notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/message_center/web_notification_tray.cc ('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 2013 The Chromium Authors. All rights reserved. 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 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 "chrome/browser/ui/views/message_center/web_notification_tray.h" 5 #include "chrome/browser/ui/views/message_center/web_notification_tray.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "ash/root_window_controller.h" 9 #include "ash/root_window_controller.h"
10 #include "ash/system/status_area_widget.h" 10 #include "ash/system/status_area_widget.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 EXPECT_TRUE(tray->status_icon_ == NULL); 243 EXPECT_TRUE(tray->status_icon_ == NULL);
244 tray->OnMessageCenterTrayChanged(); 244 tray->OnMessageCenterTrayChanged();
245 base::RunLoop().RunUntilIdle(); 245 base::RunLoop().RunUntilIdle();
246 EXPECT_TRUE(tray->status_icon_ == NULL); 246 EXPECT_TRUE(tray->status_icon_ == NULL);
247 AddNotification("test_id", "replace_id"); 247 AddNotification("test_id", "replace_id");
248 base::RunLoop().RunUntilIdle(); 248 base::RunLoop().RunUntilIdle();
249 EXPECT_TRUE(tray->status_icon_ != NULL); 249 EXPECT_TRUE(tray->status_icon_ != NULL);
250 RemoveNotification("test_id"); 250 RemoveNotification("test_id");
251 base::RunLoop().RunUntilIdle(); 251 base::RunLoop().RunUntilIdle();
252 EXPECT_TRUE(tray->status_icon_ != NULL); 252 EXPECT_TRUE(tray->status_icon_ == NULL);
253 } 253 }
254 } // namespace message_center 254 } // namespace message_center
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/message_center/web_notification_tray.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698