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 #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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 false); | 55 false); |
56 } | 56 } |
57 | 57 |
58 void MockAuthenticator::OnLoginFailure(const LoginFailure& failure) { | 58 void MockAuthenticator::OnLoginFailure(const LoginFailure& failure) { |
59 consumer_->OnLoginFailure(failure); | 59 consumer_->OnLoginFailure(failure); |
60 VLOG(1) << "Posting a QuitTask to UI thread"; | 60 VLOG(1) << "Posting a QuitTask to UI thread"; |
61 BrowserThread::PostTask( | 61 BrowserThread::PostTask( |
62 BrowserThread::UI, FROM_HERE, new MessageLoop::QuitTask); | 62 BrowserThread::UI, FROM_HERE, new MessageLoop::QuitTask); |
63 } | 63 } |
64 | 64 |
65 std::string MockAuthenticator::EncryptToken(const std::string& token) { | |
66 return std::string(); | |
67 } | |
68 | |
69 std::string MockAuthenticator::DecryptToken( | |
70 const std::string& encrypted_token) { | |
71 return std::string(); | |
72 } | |
73 | |
74 //////////////////////////////////////////////////////////////////////////////// | 65 //////////////////////////////////////////////////////////////////////////////// |
75 // MockLoginUtils | 66 // MockLoginUtils |
76 | 67 |
77 MockLoginUtils::MockLoginUtils(const std::string& expected_username, | 68 MockLoginUtils::MockLoginUtils(const std::string& expected_username, |
78 const std::string& expected_password) | 69 const std::string& expected_password) |
79 : expected_username_(expected_username), | 70 : expected_username_(expected_username), |
80 expected_password_(expected_password) { | 71 expected_password_(expected_password) { |
81 } | 72 } |
82 | 73 |
83 MockLoginUtils::~MockLoginUtils() {} | 74 MockLoginUtils::~MockLoginUtils() {} |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 113 |
123 void MockLoginUtils::TransferDefaultCookies(Profile* default_profile, | 114 void MockLoginUtils::TransferDefaultCookies(Profile* default_profile, |
124 Profile* new_profile) { | 115 Profile* new_profile) { |
125 } | 116 } |
126 | 117 |
127 void MockLoginUtils::TransferDefaultAuthCache(Profile* default_profile, | 118 void MockLoginUtils::TransferDefaultAuthCache(Profile* default_profile, |
128 Profile* new_profile) { | 119 Profile* new_profile) { |
129 } | 120 } |
130 | 121 |
131 } // namespace chromeos | 122 } // namespace chromeos |
OLD | NEW |