| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_LOGIN_MANAGER_TEST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/login/mixin_based_browser_test.h" | 10 #include "chrome/browser/chromeos/login/mixin_based_browser_test.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 void AddUser(const std::string& user_id); | 60 void AddUser(const std::string& user_id); |
| 61 | 61 |
| 62 // Executes given JS |expression| in |web_contents_| and checks | 62 // Executes given JS |expression| in |web_contents_| and checks |
| 63 // that it is true. | 63 // that it is true. |
| 64 void JSExpect(const std::string& expression); | 64 void JSExpect(const std::string& expression); |
| 65 | 65 |
| 66 content::WebContents* web_contents() { return web_contents_; } | 66 content::WebContents* web_contents() { return web_contents_; } |
| 67 | 67 |
| 68 test::JSChecker& js_checker() { return js_checker_; } | 68 test::JSChecker& js_checker() { return js_checker_; } |
| 69 | 69 |
| 70 static std::string GetGaiaIDForUserID(const std::string& user_id); |
| 71 |
| 70 protected: | 72 protected: |
| 71 bool use_webview() { return use_webview_; } | 73 bool use_webview() { return use_webview_; } |
| 72 void set_use_webview(bool use_webview) { use_webview_ = use_webview; } | 74 void set_use_webview(bool use_webview) { use_webview_ = use_webview; } |
| 73 | 75 |
| 74 bool use_webview_; | 76 bool use_webview_; |
| 75 | 77 |
| 76 private: | 78 private: |
| 77 void InitializeWebContents(); | 79 void InitializeWebContents(); |
| 78 | 80 |
| 79 void set_web_contents(content::WebContents* web_contents) { | 81 void set_web_contents(content::WebContents* web_contents) { |
| 80 web_contents_ = web_contents; | 82 web_contents_ = web_contents; |
| 81 } | 83 } |
| 82 | 84 |
| 83 bool should_launch_browser_; | 85 bool should_launch_browser_; |
| 84 content::WebContents* web_contents_; | 86 content::WebContents* web_contents_; |
| 85 test::JSChecker js_checker_; | 87 test::JSChecker js_checker_; |
| 86 | 88 |
| 87 DISALLOW_COPY_AND_ASSIGN(LoginManagerTest); | 89 DISALLOW_COPY_AND_ASSIGN(LoginManagerTest); |
| 88 }; | 90 }; |
| 89 | 91 |
| 90 } // namespace chromeos | 92 } // namespace chromeos |
| 91 | 93 |
| 92 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ | 94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ |
| OLD | NEW |