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

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

Issue 7608002: Fix the clang bot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
« no previous file with comments | « chrome/browser/chromeos/login/mock_authenticator.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 namespace chromeos { 7 namespace chromeos {
8 8
9 bool MockAuthenticator::AuthenticateToLogin(Profile* profile, 9 bool MockAuthenticator::AuthenticateToLogin(Profile* profile,
10 const std::string& username, 10 const std::string& username,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 false); 53 false);
54 } 54 }
55 55
56 void MockAuthenticator::OnLoginFailure(const LoginFailure& failure) { 56 void MockAuthenticator::OnLoginFailure(const LoginFailure& failure) {
57 consumer_->OnLoginFailure(failure); 57 consumer_->OnLoginFailure(failure);
58 VLOG(1) << "Posting a QuitTask to UI thread"; 58 VLOG(1) << "Posting a QuitTask to UI thread";
59 BrowserThread::PostTask( 59 BrowserThread::PostTask(
60 BrowserThread::UI, FROM_HERE, new MessageLoop::QuitTask); 60 BrowserThread::UI, FROM_HERE, new MessageLoop::QuitTask);
61 } 61 }
62 62
63 std::string MockAuthenticator::EncryptToken(const std::string& token) {
64 return std::string();
65 }
66
67 std::string MockAuthenticator::DecryptToken(
68 const std::string& encrypted_token) {
69 return std::string();
70 }
71
63 //////////////////////////////////////////////////////////////////////////////// 72 ////////////////////////////////////////////////////////////////////////////////
64 // MockLoginUtils 73 // MockLoginUtils
65 74
66 MockLoginUtils::MockLoginUtils(const std::string& expected_username, 75 MockLoginUtils::MockLoginUtils(const std::string& expected_username,
67 const std::string& expected_password) 76 const std::string& expected_password)
68 : expected_username_(expected_username), 77 : expected_username_(expected_username),
69 expected_password_(expected_password) { 78 expected_password_(expected_password) {
70 } 79 }
71 80
72 MockLoginUtils::~MockLoginUtils() {} 81 MockLoginUtils::~MockLoginUtils() {}
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 CommandLine* command_line) { 117 CommandLine* command_line) {
109 return std::string(); 118 return std::string();
110 } 119 }
111 120
112 bool MockLoginUtils::TransferDefaultCookies(Profile* default_profile, 121 bool MockLoginUtils::TransferDefaultCookies(Profile* default_profile,
113 Profile* new_profile) { 122 Profile* new_profile) {
114 return true; 123 return true;
115 } 124 }
116 125
117 } // namespace chromeos 126 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/mock_authenticator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698