| OLD | NEW |
| 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_in_process_browser_test.h" | 9 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" |
| 10 #include "chrome/browser/chromeos/cros/cros_mock.h" | 10 #include "chrome/browser/chromeos/cros/cros_mock.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 .WillRepeatedly(Return(false)); | 156 .WillRepeatedly(Return(false)); |
| 157 EXPECT_CALL(*mock_user_manager_.user_manager(), IsLoggedInAsGuest()) | 157 EXPECT_CALL(*mock_user_manager_.user_manager(), IsLoggedInAsGuest()) |
| 158 .Times(AnyNumber()) | 158 .Times(AnyNumber()) |
| 159 .WillRepeatedly(Return(false)); | 159 .WillRepeatedly(Return(false)); |
| 160 EXPECT_CALL(*mock_user_manager_.user_manager(), IsLoggedInAsDemoUser()) | 160 EXPECT_CALL(*mock_user_manager_.user_manager(), IsLoggedInAsDemoUser()) |
| 161 .Times(AnyNumber()) | 161 .Times(AnyNumber()) |
| 162 .WillRepeatedly(Return(false)); | 162 .WillRepeatedly(Return(false)); |
| 163 EXPECT_CALL(*mock_user_manager_.user_manager(), IsSessionStarted()) | 163 EXPECT_CALL(*mock_user_manager_.user_manager(), IsSessionStarted()) |
| 164 .Times(AnyNumber()) | 164 .Times(AnyNumber()) |
| 165 .WillRepeatedly(Return(false)); | 165 .WillRepeatedly(Return(false)); |
| 166 EXPECT_CALL(*mock_user_manager_.user_manager(), GetUserWallpaperIndex()) | |
| 167 .Times(AnyNumber()) | |
| 168 .WillRepeatedly(Return(0)); | |
| 169 | 166 |
| 170 EXPECT_CALL(*mock_login_display_host_.get(), CreateLoginDisplay(_)) | 167 EXPECT_CALL(*mock_login_display_host_.get(), CreateLoginDisplay(_)) |
| 171 .Times(1) | 168 .Times(1) |
| 172 .WillOnce(Return(mock_login_display_.get())); | 169 .WillOnce(Return(mock_login_display_.get())); |
| 173 EXPECT_CALL(*mock_login_display_host_.get(), GetNativeWindow()) | 170 EXPECT_CALL(*mock_login_display_host_.get(), GetNativeWindow()) |
| 174 .Times(1) | 171 .Times(1) |
| 175 .WillOnce(ReturnNull()); | 172 .WillOnce(ReturnNull()); |
| 176 EXPECT_CALL(*mock_login_display_.get(), Init(_, false, true, true)) | 173 EXPECT_CALL(*mock_login_display_.get(), Init(_, false, true, true)) |
| 177 .Times(1); | 174 .Times(1); |
| 178 } | 175 } |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 .Times(1); | 298 .Times(1); |
| 302 EXPECT_CALL(*mock_login_display_.get(), OnFadeOut()) | 299 EXPECT_CALL(*mock_login_display_.get(), OnFadeOut()) |
| 303 .Times(1); | 300 .Times(1); |
| 304 EXPECT_CALL(*mock_login_display_host_.get(), OnCompleteLogin()) | 301 EXPECT_CALL(*mock_login_display_host_.get(), OnCompleteLogin()) |
| 305 .Times(1); | 302 .Times(1); |
| 306 existing_user_controller()->CompleteLogin(kNewUsername, kPassword); | 303 existing_user_controller()->CompleteLogin(kNewUsername, kPassword); |
| 307 ui_test_utils::RunAllPendingInMessageLoop(); | 304 ui_test_utils::RunAllPendingInMessageLoop(); |
| 308 } | 305 } |
| 309 | 306 |
| 310 } // namespace chromeos | 307 } // namespace chromeos |
| OLD | NEW |