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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void AddUser(const std::string& user_id); | 59 void AddUser(const std::string& user_id); |
60 | 60 |
61 // Executes given JS |expression| in |web_contents_| and checks | 61 // Executes given JS |expression| in |web_contents_| and checks |
62 // that it is true. | 62 // that it is true. |
63 void JSExpect(const std::string& expression); | 63 void JSExpect(const std::string& expression); |
64 | 64 |
65 content::WebContents* web_contents() { return web_contents_; } | 65 content::WebContents* web_contents() { return web_contents_; } |
66 | 66 |
67 test::JSChecker& js_checker() { return js_checker_; } | 67 test::JSChecker& js_checker() { return js_checker_; } |
68 | 68 |
| 69 static std::string GetGaiaIDForUserID(const std::string& user_id); |
| 70 |
69 private: | 71 private: |
70 void InitializeWebContents(); | 72 void InitializeWebContents(); |
71 | 73 |
72 void set_web_contents(content::WebContents* web_contents) { | 74 void set_web_contents(content::WebContents* web_contents) { |
73 web_contents_ = web_contents; | 75 web_contents_ = web_contents; |
74 } | 76 } |
75 | 77 |
76 bool should_launch_browser_; | 78 bool should_launch_browser_; |
77 content::WebContents* web_contents_; | 79 content::WebContents* web_contents_; |
78 test::JSChecker js_checker_; | 80 test::JSChecker js_checker_; |
79 | 81 |
80 DISALLOW_COPY_AND_ASSIGN(LoginManagerTest); | 82 DISALLOW_COPY_AND_ASSIGN(LoginManagerTest); |
81 }; | 83 }; |
82 | 84 |
83 } // namespace chromeos | 85 } // namespace chromeos |
84 | 86 |
85 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ | 87 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ |
OLD | NEW |