| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_LOGIN_UTILS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TEST_LOGIN_UTILS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_LOGIN_UTILS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_LOGIN_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 TestLoginUtils(const std::string& expected_username, | 24 TestLoginUtils(const std::string& expected_username, |
| 25 const std::string& expected_password); | 25 const std::string& expected_password); |
| 26 virtual ~TestLoginUtils(); | 26 virtual ~TestLoginUtils(); |
| 27 | 27 |
| 28 virtual void DoBrowserLaunch(Profile* profile, | 28 virtual void DoBrowserLaunch(Profile* profile, |
| 29 LoginDisplayHost* login_host) OVERRIDE {} | 29 LoginDisplayHost* login_host) OVERRIDE {} |
| 30 virtual void PrepareProfile(const std::string& username, | 30 virtual void PrepareProfile(const std::string& username, |
| 31 const std::string& display_email, | 31 const std::string& display_email, |
| 32 const std::string& password, | 32 const std::string& password, |
| 33 bool pending_requests, | |
| 34 bool using_oauth, | 33 bool using_oauth, |
| 35 bool has_cookies, | 34 bool has_cookies, |
| 36 Delegate* delegate) OVERRIDE; | 35 Delegate* delegate) OVERRIDE; |
| 37 | 36 |
| 38 virtual void DelegateDeleted(Delegate* delegate) OVERRIDE; | 37 virtual void DelegateDeleted(Delegate* delegate) OVERRIDE; |
| 39 | 38 |
| 40 virtual void CompleteOffTheRecordLogin(const GURL& start_url) OVERRIDE {} | 39 virtual void CompleteOffTheRecordLogin(const GURL& start_url) OVERRIDE {} |
| 41 | 40 |
| 42 virtual void SetFirstLoginPrefs(PrefService* prefs) OVERRIDE {} | 41 virtual void SetFirstLoginPrefs(PrefService* prefs) OVERRIDE {} |
| 43 | 42 |
| 44 virtual scoped_refptr<Authenticator> CreateAuthenticator( | 43 virtual scoped_refptr<Authenticator> CreateAuthenticator( |
| 45 LoginStatusConsumer* consumer) OVERRIDE; | 44 LoginStatusConsumer* consumer) OVERRIDE; |
| 46 | 45 |
| 47 virtual void PrewarmAuthentication() OVERRIDE {} | 46 virtual void PrewarmAuthentication() OVERRIDE {} |
| 48 | 47 |
| 49 virtual void RestoreAuthenticationSession(Profile* profile) OVERRIDE {} | 48 virtual void RestoreAuthenticationSession(Profile* profile) OVERRIDE {} |
| 50 | 49 |
| 51 virtual void StartTokenServices(Profile* profile) OVERRIDE {} | |
| 52 | |
| 53 virtual void StartSignedInServices( | |
| 54 Profile* profile, | |
| 55 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE {} | |
| 56 | |
| 57 virtual std::string GetOffTheRecordCommandLine( | 50 virtual std::string GetOffTheRecordCommandLine( |
| 58 const GURL& start_url, | 51 const GURL& start_url, |
| 59 const CommandLine& base_command_line, | 52 const CommandLine& base_command_line, |
| 60 CommandLine* command_line) OVERRIDE; | 53 CommandLine* command_line) OVERRIDE; |
| 61 | 54 |
| 62 virtual void InitRlzDelayed(Profile* user_profile) OVERRIDE; | 55 virtual void InitRlzDelayed(Profile* user_profile) OVERRIDE; |
| 63 | 56 |
| 64 virtual void StopBackgroundFetchers() OVERRIDE; | 57 virtual void StopBackgroundFetchers() OVERRIDE; |
| 65 | 58 |
| 66 private: | 59 private: |
| 67 std::string expected_username_; | 60 std::string expected_username_; |
| 68 std::string expected_password_; | 61 std::string expected_password_; |
| 69 std::string auth_token_; | 62 std::string auth_token_; |
| 70 | 63 |
| 71 DISALLOW_COPY_AND_ASSIGN(TestLoginUtils); | 64 DISALLOW_COPY_AND_ASSIGN(TestLoginUtils); |
| 72 }; | 65 }; |
| 73 | 66 |
| 74 } // namespace chromeos | 67 } // namespace chromeos |
| 75 | 68 |
| 76 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_LOGIN_UTILS_H_ | 69 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_LOGIN_UTILS_H_ |
| OLD | NEW |