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

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

Issue 9355059: Renaming virtual setters/getters in UserManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: year Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bind.h" 5 #include "base/bind.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "chrome/browser/chromeos/cros/cros_mock.h" 9 #include "chrome/browser/chromeos/cros/cros_mock.h"
10 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" 10 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 mock_login_display_host_.reset(new MockLoginDisplayHost()); 145 mock_login_display_host_.reset(new MockLoginDisplayHost());
146 146
147 mock_user_manager_ = new MockUserManager(); 147 mock_user_manager_ = new MockUserManager();
148 UserManager::Set(mock_user_manager_); 148 UserManager::Set(mock_user_manager_);
149 EXPECT_CALL(*mock_user_manager_, IsKnownUser(kUsername)) 149 EXPECT_CALL(*mock_user_manager_, IsKnownUser(kUsername))
150 .Times(AnyNumber()) 150 .Times(AnyNumber())
151 .WillRepeatedly(Return(true)); 151 .WillRepeatedly(Return(true));
152 EXPECT_CALL(*mock_user_manager_, IsKnownUser(kNewUsername)) 152 EXPECT_CALL(*mock_user_manager_, IsKnownUser(kNewUsername))
153 .Times(AnyNumber()) 153 .Times(AnyNumber())
154 .WillRepeatedly(Return(false)); 154 .WillRepeatedly(Return(false));
155 EXPECT_CALL(*mock_user_manager_, user_is_logged_in()) 155 EXPECT_CALL(*mock_user_manager_, IsUserLoggedIn())
156 .Times(AnyNumber()) 156 .Times(AnyNumber())
157 .WillRepeatedly(Return(false)); 157 .WillRepeatedly(Return(false));
158 EXPECT_CALL(*mock_user_manager_, IsLoggedInAsGuest()) 158 EXPECT_CALL(*mock_user_manager_, IsLoggedInAsGuest())
159 .Times(AnyNumber()) 159 .Times(AnyNumber())
160 .WillRepeatedly(Return(false)); 160 .WillRepeatedly(Return(false));
161 161
162 EXPECT_CALL(*mock_login_display_host_.get(), CreateLoginDisplay(_)) 162 EXPECT_CALL(*mock_login_display_host_.get(), CreateLoginDisplay(_))
163 .Times(1) 163 .Times(1)
164 .WillOnce(Return(mock_login_display_.get())); 164 .WillOnce(Return(mock_login_display_.get()));
165 EXPECT_CALL(*mock_login_display_host_.get(), GetNativeWindow()) 165 EXPECT_CALL(*mock_login_display_host_.get(), GetNativeWindow())
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 .Times(1); 283 .Times(1);
284 EXPECT_CALL(*mock_login_display_.get(), OnFadeOut()) 284 EXPECT_CALL(*mock_login_display_.get(), OnFadeOut())
285 .Times(1); 285 .Times(1);
286 EXPECT_CALL(*mock_login_display_host_.get(), OnCompleteLogin()) 286 EXPECT_CALL(*mock_login_display_host_.get(), OnCompleteLogin())
287 .Times(1); 287 .Times(1);
288 existing_user_controller()->CompleteLogin(kNewUsername, kPassword); 288 existing_user_controller()->CompleteLogin(kNewUsername, kPassword);
289 ui_test_utils::RunAllPendingInMessageLoop(); 289 ui_test_utils::RunAllPendingInMessageLoop();
290 } 290 }
291 291
292 } // namespace chromeos 292 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/locale_change_guard.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698