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

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

Issue 8761016: Shaving parallel authenticator yak to remove unnecessary dependency on this class from OAuth spec... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 virtual void ResyncEncryptedData( 61 virtual void ResyncEncryptedData(
62 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE {} 62 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE {}
63 63
64 virtual void RetryAuth(Profile* profile, 64 virtual void RetryAuth(Profile* profile,
65 const std::string& username, 65 const std::string& username,
66 const std::string& password, 66 const std::string& password,
67 const std::string& login_token, 67 const std::string& login_token,
68 const std::string& login_captcha) OVERRIDE {} 68 const std::string& login_captcha) OVERRIDE {}
69 69
70 virtual std::string EncryptToken(const std::string& token) OVERRIDE;
71
72 virtual std::string DecryptToken(const std::string& encrypted_token) OVERRIDE;
73
74 virtual void VerifyOAuth1AccessToken(
75 const std::string& oauth1_access_token,
76 const std::string& oauth1_secret) OVERRIDE {}
77
78 private: 70 private:
79 std::string expected_username_; 71 std::string expected_username_;
80 std::string expected_password_; 72 std::string expected_password_;
81 73
82 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); 74 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator);
83 }; 75 };
84 76
85 class MockLoginUtils : public LoginUtils { 77 class MockLoginUtils : public LoginUtils {
86 public: 78 public:
87 MockLoginUtils(const std::string& expected_username, 79 MockLoginUtils(const std::string& expected_username,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 std::string expected_password_; 128 std::string expected_password_;
137 std::string auth_token_; 129 std::string auth_token_;
138 chromeos::BackgroundView* background_view_; 130 chromeos::BackgroundView* background_view_;
139 131
140 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); 132 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils);
141 }; 133 };
142 134
143 } // namespace chromeos 135 } // namespace chromeos
144 136
145 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ 137 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils_browsertest.cc ('k') | chrome/browser/chromeos/login/mock_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698