| 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 #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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 std::string expected_username_; | 71 std::string expected_username_; |
| 72 std::string expected_password_; | 72 std::string expected_password_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); | 74 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 class MockLoginUtils : public LoginUtils { | 77 class MockLoginUtils : public LoginUtils { |
| 78 public: | 78 public: |
| 79 explicit MockLoginUtils(const std::string& expected_username, | 79 MockLoginUtils(const std::string& expected_username, |
| 80 const std::string& expected_password); | 80 const std::string& expected_password); |
| 81 virtual ~MockLoginUtils(); | 81 virtual ~MockLoginUtils(); |
| 82 | 82 |
| 83 virtual bool ShouldWaitForWifi(); | 83 virtual bool ShouldWaitForWifi(); |
| 84 | 84 |
| 85 virtual void PrepareProfile(const std::string& username, | 85 virtual void PrepareProfile(const std::string& username, |
| 86 const std::string& password, | 86 const std::string& password, |
| 87 const GaiaAuthConsumer::ClientLoginResult& res, | 87 const GaiaAuthConsumer::ClientLoginResult& res, |
| 88 bool pending_requests, | 88 bool pending_requests, |
| 89 Delegate* delegate); | 89 Delegate* delegate); |
| 90 | 90 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 120 std::string expected_password_; | 120 std::string expected_password_; |
| 121 std::string auth_token_; | 121 std::string auth_token_; |
| 122 chromeos::BackgroundView* background_view_; | 122 chromeos::BackgroundView* background_view_; |
| 123 | 123 |
| 124 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); | 124 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace chromeos | 127 } // namespace chromeos |
| 128 | 128 |
| 129 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ | 129 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ |
| OLD | NEW |