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

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

Issue 7756025: Changed OAuth token+secret encryption to use supplemental user key. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 std::string MockAuthenticator::EncryptToken(const std::string& token) { 63 std::string MockAuthenticator::EncryptToken(const std::string& token) {
64 return std::string(); 64 return std::string();
65 } 65 }
66 66
67 std::string MockAuthenticator::DecryptToken( 67 std::string MockAuthenticator::DecryptToken(
68 const std::string& encrypted_token) { 68 const std::string& encrypted_token) {
69 return std::string(); 69 return std::string();
70 } 70 }
71 71
72 std::string MockAuthenticator::DecryptLegacyToken(
73 const std::string& encrypted_token) {
74 return std::string();
75 }
76
72 //////////////////////////////////////////////////////////////////////////////// 77 ////////////////////////////////////////////////////////////////////////////////
73 // MockLoginUtils 78 // MockLoginUtils
74 79
75 MockLoginUtils::MockLoginUtils(const std::string& expected_username, 80 MockLoginUtils::MockLoginUtils(const std::string& expected_username,
76 const std::string& expected_password) 81 const std::string& expected_password)
77 : expected_username_(expected_username), 82 : expected_username_(expected_username),
78 expected_password_(expected_password) { 83 expected_password_(expected_password) {
79 } 84 }
80 85
81 MockLoginUtils::~MockLoginUtils() {} 86 MockLoginUtils::~MockLoginUtils() {}
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 CommandLine* command_line) { 123 CommandLine* command_line) {
119 return std::string(); 124 return std::string();
120 } 125 }
121 126
122 bool MockLoginUtils::TransferDefaultCookies(Profile* default_profile, 127 bool MockLoginUtils::TransferDefaultCookies(Profile* default_profile,
123 Profile* new_profile) { 128 Profile* new_profile) {
124 return true; 129 return true;
125 } 130 }
126 131
127 } // namespace chromeos 132 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/mock_authenticator.h ('k') | chrome/browser/chromeos/login/parallel_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698