Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Unified Diff: chrome/browser/ui/webui/signin/login_ui_test_utils.h

Issue 621153002: A Sign in to GAIA test utility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/signin/login_ui_test_utils.h
diff --git a/chrome/browser/ui/webui/signin/login_ui_test_utils.h b/chrome/browser/ui/webui/signin/login_ui_test_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..3f17f46c0968dfd66e0cc518c27601962c595b11
--- /dev/null
+++ b/chrome/browser/ui/webui/signin/login_ui_test_utils.h
@@ -0,0 +1,31 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_TEST_UTILS_H_
+#define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_TEST_UTILS_H_
+
+#include <string>
+
+class Browser;
+
+namespace login_ui_test_utils {
+
+// Blocks until the login UI is available and ready for authorization.
+void WaitUntilUIReady(Browser* browser);
+
+// Executes JavaScript code to sign in a user with email and password to the
+// auth iframe hosted by gaia_auth extension.
+void ExecuteJsToSigninInSigninFrame(Browser* browser,
+ const std::string& email,
+ const std::string& password);
+
+// A function to sign in a user using Chrome sign-in UI interface.
+// This will block until a signin succeeded or failed notification is observed.
+bool SignInWithUI(Browser* browser,
+ const std::string& email,
+ const std::string& password);
+
+} // namespace login_ui_test_utils
+
+#endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_TEST_UTILS_H_
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc ('k') | chrome/browser/ui/webui/signin/login_ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698