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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/signin_userlist_unittest.cc

Issue 629463003: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[w-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" 6 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h"
7 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" 7 #include "chrome/browser/chromeos/login/users/fake_user_manager.h"
8 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller.h" 8 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller.h"
9 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller_dele gate.h" 9 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller_dele gate.h"
10 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" 10 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
(...skipping 24 matching lines...) Expand all
35 public MultiProfileUserControllerDelegate { 35 public MultiProfileUserControllerDelegate {
36 public: 36 public:
37 SigninPrepareUserListTest() 37 SigninPrepareUserListTest()
38 : fake_user_manager_(new FakeUserManager()), 38 : fake_user_manager_(new FakeUserManager()),
39 user_manager_enabler_(fake_user_manager_) { 39 user_manager_enabler_(fake_user_manager_) {
40 } 40 }
41 41
42 virtual ~SigninPrepareUserListTest() { 42 virtual ~SigninPrepareUserListTest() {
43 } 43 }
44 44
45 virtual void SetUp() OVERRIDE { 45 virtual void SetUp() override {
46 profile_manager_.reset( 46 profile_manager_.reset(
47 new TestingProfileManager(TestingBrowserProcess::GetGlobal())); 47 new TestingProfileManager(TestingBrowserProcess::GetGlobal()));
48 ASSERT_TRUE(profile_manager_->SetUp()); 48 ASSERT_TRUE(profile_manager_->SetUp());
49 controller_.reset(new MultiProfileUserController( 49 controller_.reset(new MultiProfileUserController(
50 this, TestingBrowserProcess::GetGlobal()->local_state())); 50 this, TestingBrowserProcess::GetGlobal()->local_state()));
51 fake_user_manager_->set_multi_profile_user_controller(controller_.get()); 51 fake_user_manager_->set_multi_profile_user_controller(controller_.get());
52 52
53 for (size_t i = 0; i < arraysize(kUsersPublic); ++i) 53 for (size_t i = 0; i < arraysize(kUsersPublic); ++i)
54 fake_user_manager_->AddPublicAccountUser(kUsersPublic[i]); 54 fake_user_manager_->AddPublicAccountUser(kUsersPublic[i]);
55 55
56 for (size_t i = 0; i < arraysize(kUsers); ++i) 56 for (size_t i = 0; i < arraysize(kUsers); ++i)
57 fake_user_manager_->AddUser(kUsers[i]); 57 fake_user_manager_->AddUser(kUsers[i]);
58 58
59 fake_user_manager_->set_owner_email(kOwner); 59 fake_user_manager_->set_owner_email(kOwner);
60 } 60 }
61 61
62 virtual void TearDown() OVERRIDE { 62 virtual void TearDown() override {
63 controller_.reset(); 63 controller_.reset();
64 profile_manager_.reset(); 64 profile_manager_.reset();
65 } 65 }
66 66
67 // MultiProfileUserControllerDelegate overrides: 67 // MultiProfileUserControllerDelegate overrides:
68 virtual void OnUserNotAllowed(const std::string& user_email) OVERRIDE { 68 virtual void OnUserNotAllowed(const std::string& user_email) override {
69 } 69 }
70 70
71 FakeUserManager* fake_user_manager_; 71 FakeUserManager* fake_user_manager_;
72 ScopedUserManagerEnabler user_manager_enabler_; 72 ScopedUserManagerEnabler user_manager_enabler_;
73 scoped_ptr<TestingProfileManager> profile_manager_; 73 scoped_ptr<TestingProfileManager> profile_manager_;
74 std::map<std::string, 74 std::map<std::string,
75 ScreenlockBridge::LockHandler::AuthType> user_auth_type_map; 75 ScreenlockBridge::LockHandler::AuthType> user_auth_type_map;
76 scoped_ptr<MultiProfileUserController> controller_; 76 scoped_ptr<MultiProfileUserController> controller_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(SigninPrepareUserListTest); 78 DISALLOW_COPY_AND_ASSIGN(SigninPrepareUserListTest);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 users_to_send = UserSelectionScreen::PrepareUserListForSending( 110 users_to_send = UserSelectionScreen::PrepareUserListForSending(
111 fake_user_manager_->GetUsers(), 111 fake_user_manager_->GetUsers(),
112 kOwner, 112 kOwner,
113 false /* is signin to add */); 113 false /* is signin to add */);
114 114
115 EXPECT_EQ(kMaxUsers, users_to_send.size()); 115 EXPECT_EQ(kMaxUsers, users_to_send.size());
116 EXPECT_EQ("public0@gmail.com", users_to_send.front()->email()); 116 EXPECT_EQ("public0@gmail.com", users_to_send.front()->email());
117 } 117 }
118 118
119 } // namespace chromeos 119 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698