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

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

Issue 8773046: [cros] Display emails of users are stored in a separate dictionary in Local State. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/chromeos/login/mock_authenticator.h" 5 #include "chrome/browser/chromeos/login/mock_authenticator.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 9
10 using content::BrowserThread; 10 using content::BrowserThread;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 MockLoginUtils::MockLoginUtils(const std::string& expected_username, 77 MockLoginUtils::MockLoginUtils(const std::string& expected_username,
78 const std::string& expected_password) 78 const std::string& expected_password)
79 : expected_username_(expected_username), 79 : expected_username_(expected_username),
80 expected_password_(expected_password) { 80 expected_password_(expected_password) {
81 } 81 }
82 82
83 MockLoginUtils::~MockLoginUtils() {} 83 MockLoginUtils::~MockLoginUtils() {}
84 84
85 void MockLoginUtils::PrepareProfile( 85 void MockLoginUtils::PrepareProfile(
86 const std::string& username, 86 const std::string& username,
87 const std::string& display_email,
87 const std::string& password, 88 const std::string& password,
88 const GaiaAuthConsumer::ClientLoginResult& res, 89 const GaiaAuthConsumer::ClientLoginResult& res,
89 bool pending_requests, 90 bool pending_requests,
90 bool using_oauth, 91 bool using_oauth,
91 bool has_cookies, 92 bool has_cookies,
92 Delegate* delegate) { 93 Delegate* delegate) {
93 DCHECK_EQ(expected_username_, username); 94 DCHECK_EQ(expected_username_, username);
94 DCHECK_EQ(expected_password_, password); 95 DCHECK_EQ(expected_password_, password);
95 // Profile hasn't been loaded. 96 // Profile hasn't been loaded.
96 delegate->OnProfilePrepared(NULL); 97 delegate->OnProfilePrepared(NULL);
(...skipping 25 matching lines...) Expand all
122 123
123 void MockLoginUtils::TransferDefaultCookies(Profile* default_profile, 124 void MockLoginUtils::TransferDefaultCookies(Profile* default_profile,
124 Profile* new_profile) { 125 Profile* new_profile) {
125 } 126 }
126 127
127 void MockLoginUtils::TransferDefaultAuthCache(Profile* default_profile, 128 void MockLoginUtils::TransferDefaultAuthCache(Profile* default_profile,
128 Profile* new_profile) { 129 Profile* new_profile) {
129 } 130 }
130 131
131 } // namespace chromeos 132 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698