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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller_auto_login_unittest.cc

Issue 856493004: Update {virtual,override,final} to follow C++11 style in chrome/browser/chromeos/login. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 <string> 5 #include <string>
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/chromeos/login/existing_user_controller.h" 9 #include "chrome/browser/chromeos/login/existing_user_controller.h"
10 #include "chrome/browser/chromeos/login/mock_login_utils.h" 10 #include "chrome/browser/chromeos/login/mock_login_utils.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 ExistingUserControllerAutoLoginTest() 44 ExistingUserControllerAutoLoginTest()
45 : auto_login_user_id_(policy::GenerateDeviceLocalAccountUserId( 45 : auto_login_user_id_(policy::GenerateDeviceLocalAccountUserId(
46 kAutoLoginAccountId, 46 kAutoLoginAccountId,
47 policy::DeviceLocalAccount::TYPE_PUBLIC_SESSION)), 47 policy::DeviceLocalAccount::TYPE_PUBLIC_SESSION)),
48 ui_thread_(content::BrowserThread::UI, &message_loop_), 48 ui_thread_(content::BrowserThread::UI, &message_loop_),
49 local_state_(TestingBrowserProcess::GetGlobal()), 49 local_state_(TestingBrowserProcess::GetGlobal()),
50 mock_user_manager_(new MockUserManager()), 50 mock_user_manager_(new MockUserManager()),
51 scoped_user_manager_(mock_user_manager_) { 51 scoped_user_manager_(mock_user_manager_) {
52 } 52 }
53 53
54 virtual void SetUp() { 54 void SetUp() override {
55 mock_login_display_host_.reset(new MockLoginDisplayHost); 55 mock_login_display_host_.reset(new MockLoginDisplayHost);
56 mock_login_display_ = new MockLoginDisplay(); 56 mock_login_display_ = new MockLoginDisplay();
57 mock_login_utils_ = new MockLoginUtils(); 57 mock_login_utils_ = new MockLoginUtils();
58 LoginUtils::Set(mock_login_utils_); 58 LoginUtils::Set(mock_login_utils_);
59 59
60 EXPECT_CALL(*mock_login_display_host_.get(), CreateLoginDisplay(_)) 60 EXPECT_CALL(*mock_login_display_host_.get(), CreateLoginDisplay(_))
61 .Times(1) 61 .Times(1)
62 .WillOnce(Return(mock_login_display_)); 62 .WillOnce(Return(mock_login_display_));
63 63
64 EXPECT_CALL(*mock_login_utils_, DelegateDeleted(_)).Times(AnyNumber()); 64 EXPECT_CALL(*mock_login_utils_, DelegateDeleted(_)).Times(AnyNumber());
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 ConfigureAutoLogin(); 276 ConfigureAutoLogin();
277 ASSERT_TRUE(auto_login_timer()); 277 ASSERT_TRUE(auto_login_timer());
278 EXPECT_FALSE(auto_login_timer()->IsRunning()); 278 EXPECT_FALSE(auto_login_timer()->IsRunning());
279 EXPECT_EQ(auto_login_timer()->GetCurrentDelay().InMilliseconds(), 279 EXPECT_EQ(auto_login_timer()->GetCurrentDelay().InMilliseconds(),
280 kAutoLoginDelay2); 280 kAutoLoginDelay2);
281 EXPECT_EQ(auto_login_username(), ""); 281 EXPECT_EQ(auto_login_username(), "");
282 EXPECT_EQ(auto_login_delay(), kAutoLoginDelay2); 282 EXPECT_EQ(auto_login_delay(), kAutoLoginDelay2);
283 } 283 }
284 284
285 } // namespace chromeos 285 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698