OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_TEST_UTILS_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_TEST_UTILS_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 class Browser; |
| 11 |
| 12 namespace login_ui_test_utils { |
| 13 |
| 14 // Blocks until the login UI is available and ready for authorization. |
| 15 void WaitUntilUIReady(Browser* browser); |
| 16 |
| 17 // Executes JavaScript code to sign in a user with email and password to the |
| 18 // auth iframe hosted by gaia_auth extension. |
| 19 void ExecuteJsToSigninInSigninFrame(Browser* browser, |
| 20 const std::string& email, |
| 21 const std::string& password); |
| 22 |
| 23 // A function to sign in a user using Chrome sign-in UI interface. |
| 24 // This will block until a signin succeeded or failed notification is observed. |
| 25 bool SignInWithUI(Browser* browser, |
| 26 const std::string& email, |
| 27 const std::string& password); |
| 28 |
| 29 } // namespace login_ui_test_utils |
| 30 |
| 31 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_TEST_UTILS_H_ |
OLD | NEW |