OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |