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

Side by Side Diff: chrome/browser/chromeos/login/login_manager_test.h

Issue 271533004: Turning on MultiProfile by default for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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 | Annotate | Revision Log
OLDNEW
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 "chrome/browser/chromeos/login/mock_login_utils.h" 8 #include "chrome/browser/chromeos/login/mock_login_utils.h"
9 #include "chrome/browser/chromeos/login/test/js_checker.h" 9 #include "chrome/browser/chromeos/login/test/js_checker.h"
10 #include "chrome/test/base/in_process_browser_test.h" 10 #include "chrome/test/base/in_process_browser_test.h"
(...skipping 29 matching lines...) Expand all
40 void SetExpectedCredentials(const std::string& username, 40 void SetExpectedCredentials(const std::string& username,
41 const std::string& password); 41 const std::string& password);
42 42
43 // Tries to login with |username| and |password|. Returns false if attempt 43 // Tries to login with |username| and |password|. Returns false if attempt
44 // has failed. 44 // has failed.
45 bool TryToLogin(const std::string& username, const std::string& password); 45 bool TryToLogin(const std::string& username, const std::string& password);
46 46
47 // Tries to add user to session with |username| and |password|. Returns false 47 // Tries to add user to session with |username| and |password|. Returns false
48 // if attempt has failed. this function does the same as TryToLogin but 48 // if attempt has failed. this function does the same as TryToLogin but
49 // doesn't check that new user become active user. 49 // doesn't check that new user become active user.
50 bool AddUserTosession(const std::string& username, 50 bool AddUserToSession(const std::string& username,
51 const std::string& password); 51 const std::string& password);
52 52
53 // Login user with |username|. User should be registered using RegisterUser(). 53 // Login user with |username|. User should be registered using RegisterUser().
54 void LoginUser(const std::string& username); 54 void LoginUser(const std::string& username);
55 55
56 // Add user with |username| to session. 56 // Add user with |username| to session.
57 void AddUser(const std::string& username); 57 void AddUser(const std::string& username);
58 58
59 // Executes given JS |expression| in |web_contents_| and checks 59 // Executes given JS |expression| in |web_contents_| and checks
60 // that it is true. 60 // that it is true.
(...skipping 14 matching lines...) Expand all
75 bool should_launch_browser_; 75 bool should_launch_browser_;
76 content::WebContents* web_contents_; 76 content::WebContents* web_contents_;
77 test::JSChecker js_checker_; 77 test::JSChecker js_checker_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(LoginManagerTest); 79 DISALLOW_COPY_AND_ASSIGN(LoginManagerTest);
80 }; 80 };
81 81
82 } // namespace chromeos 82 } // namespace chromeos
83 83
84 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ 84 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_browsertest.cc ('k') | chrome/browser/chromeos/login/login_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698