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

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

Issue 1494153002: This CL replaces e-mail with AccountId in easy signin code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bugfix in original easy unlock code' Created 5 years 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 (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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 existing_user_controller()->Login(user_context, SigninSpecifics()); 314 existing_user_controller()->Login(user_context, SigninSpecifics());
315 } 315 }
316 316
317 IN_PROC_BROWSER_TEST_F(ExistingUserControllerUntrustedTest, 317 IN_PROC_BROWSER_TEST_F(ExistingUserControllerUntrustedTest,
318 SupervisedUserCreationForbidden) { 318 SupervisedUserCreationForbidden) {
319 MockBaseScreenDelegate mock_base_screen_delegate; 319 MockBaseScreenDelegate mock_base_screen_delegate;
320 SupervisedUserCreationScreenHandler supervised_user_creation_screen_handler; 320 SupervisedUserCreationScreenHandler supervised_user_creation_screen_handler;
321 SupervisedUserCreationScreen supervised_user_creation_screen( 321 SupervisedUserCreationScreen supervised_user_creation_screen(
322 &mock_base_screen_delegate, &supervised_user_creation_screen_handler); 322 &mock_base_screen_delegate, &supervised_user_creation_screen_handler);
323 323
324 supervised_user_creation_screen.AuthenticateManager( 324 supervised_user_creation_screen.AuthenticateManager(account_id_, kPassword);
325 account_id_.GetUserEmail(), kPassword);
326 } 325 }
327 326
328 MATCHER_P(HasDetails, expected, "") { 327 MATCHER_P(HasDetails, expected, "") {
329 return expected == *content::Details<const std::string>(arg).ptr(); 328 return expected == *content::Details<const std::string>(arg).ptr();
330 } 329 }
331 330
332 class ExistingUserControllerPublicSessionTest 331 class ExistingUserControllerPublicSessionTest
333 : public ExistingUserControllerTest { 332 : public ExistingUserControllerTest {
334 protected: 333 protected:
335 ExistingUserControllerPublicSessionTest() {} 334 ExistingUserControllerPublicSessionTest() {}
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 PRE_TestLoadingPublicUsersFromLocalState) { 734 PRE_TestLoadingPublicUsersFromLocalState) {
736 // First run propagates public accounts and stores them in Local State. 735 // First run propagates public accounts and stores them in Local State.
737 } 736 }
738 737
739 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest, 738 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest,
740 TestLoadingPublicUsersFromLocalState) { 739 TestLoadingPublicUsersFromLocalState) {
741 // Second run loads list of public accounts from Local State. 740 // Second run loads list of public accounts from Local State.
742 } 741 }
743 742
744 } // namespace chromeos 743 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller.cc ('k') | chrome/browser/chromeos/login/lock/webui_screen_locker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698