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

Side by Side Diff: chrome/browser/ui/webui/signin/login_ui_test_utils.h

Issue 1473543002: Implement newly designed sign-in related histograms for desktop platorms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_UI_WEBUI_SIGNIN_LOGIN_UI_TEST_UTILS_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_TEST_UTILS_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_TEST_UTILS_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_TEST_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/signin/core/browser/signin_metrics.h" 10 #include "components/signin/core/browser/signin_metrics.h"
(...skipping 27 matching lines...) Expand all
38 38
39 // Executes JS to sign in the user in the old GAIA sign in flow. 39 // Executes JS to sign in the user in the old GAIA sign in flow.
40 void SigninInOldGaiaFlow(Browser* browser, 40 void SigninInOldGaiaFlow(Browser* browser,
41 const std::string& email, 41 const std::string& email,
42 const std::string& password); 42 const std::string& password);
43 43
44 // A function to sign in a user using Chrome sign-in UI interface. 44 // A function to sign in a user using Chrome sign-in UI interface.
45 // This will block until a signin succeeded or failed notification is observed. 45 // This will block until a signin succeeded or failed notification is observed.
46 // In case |wait_for_account_cookies|, the call will block until the account 46 // In case |wait_for_account_cookies|, the call will block until the account
47 // cookies have been written to the cookie jar. 47 // cookies have been written to the cookie jar.
48 // |signin_source| identifies the source used to load the signin page. 48 // |access_point| identifies the access point used to load the signin page.
49 bool SignInWithUI(Browser* browser, 49 bool SignInWithUI(Browser* browser,
50 const std::string& email, 50 const std::string& email,
51 const std::string& password, 51 const std::string& password,
52 bool wait_for_account_cookies, 52 bool wait_for_account_cookies,
53 signin_metrics::Source signin_source); 53 signin_metrics::AccessPoint access_point);
54 54
55 // Most common way to sign in a user, it does not wait for cookies to be set 55 // Most common way to sign in a user, it does not wait for cookies to be set
56 // and uses the SOURCE_START_PAGE as signin source. 56 // and uses the SOURCE_START_PAGE as signin source.
57 bool SignInWithUI(Browser* browser, 57 bool SignInWithUI(Browser* browser,
58 const std::string& email, 58 const std::string& email,
59 const std::string& password); 59 const std::string& password);
60 60
61 } // namespace login_ui_test_utils 61 } // namespace login_ui_test_utils
62 62
63 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_TEST_UTILS_H_ 63 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/login_ui_service.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