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

Side by Side Diff: chrome/browser/notifications/login_state_notification_blocker_chromeos_unittest.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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
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 "ash/shell.h" 5 #include "ash/shell.h"
6 #include "ash/system/system_notifier.h" 6 #include "ash/system/system_notifier.h"
7 #include "ash/test/ash_test_base.h" 7 #include "ash/test/ash_test_base.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/notifications/login_state_notification_blocker_chromeos .h" 11 #include "chrome/browser/notifications/login_state_notification_blocker_chromeos .h"
11 #include "chromeos/login/login_state.h" 12 #include "chromeos/login/login_state.h"
12 #include "ui/message_center/message_center.h" 13 #include "ui/message_center/message_center.h"
13 #include "ui/message_center/notification.h" 14 #include "ui/message_center/notification.h"
14 15
15 class LoginStateNotificationBlockerChromeOSTest 16 class LoginStateNotificationBlockerChromeOSTest
16 : public ash::test::AshTestBase, 17 : public ash::test::AshTestBase,
17 public message_center::NotificationBlocker::Observer { 18 public message_center::NotificationBlocker::Observer {
18 public: 19 public:
19 LoginStateNotificationBlockerChromeOSTest() 20 LoginStateNotificationBlockerChromeOSTest()
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Lock. 119 // Lock.
119 ash::Shell::GetInstance()->OnLockStateChanged(true); 120 ash::Shell::GetInstance()->OnLockStateChanged(true);
120 EXPECT_EQ(1, GetStateChangedCountAndReset()); 121 EXPECT_EQ(1, GetStateChangedCountAndReset());
121 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id)); 122 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id));
122 123
123 // Unlock. 124 // Unlock.
124 ash::Shell::GetInstance()->OnLockStateChanged(false); 125 ash::Shell::GetInstance()->OnLockStateChanged(false);
125 EXPECT_EQ(1, GetStateChangedCountAndReset()); 126 EXPECT_EQ(1, GetStateChangedCountAndReset());
126 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id)); 127 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id));
127 } 128 }
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698