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

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

Issue 378513005: [Athena] Extract Chrome OS authentication stack (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix includes in one more test Created 6 years, 5 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_FAKE_LOGIN_UTILS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_
7 7
8 #include "chrome/browser/chromeos/login/auth/user_context.h"
9 #include "chrome/browser/chromeos/login/login_utils.h" 8 #include "chrome/browser/chromeos/login/login_utils.h"
9 #include "chromeos/login/auth/user_context.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 // This class emulates behavior of LoginUtils for browser tests. 13 // This class emulates behavior of LoginUtils for browser tests.
14 // It provides: 14 // It provides:
15 // * Fake authentication. You can configure expected usernames and password for 15 // * Fake authentication. You can configure expected usernames and password for
16 // next auth attempt. 16 // next auth attempt.
17 // * Preparing of profiles for authenticated users. 17 // * Preparing of profiles for authenticated users.
18 // * Launching browser for user, if |should_launch_browser_| set. 18 // * Launching browser for user, if |should_launch_browser_| set.
19 // * Correct communication with LoginDisplayHost and UserManager. 19 // * Correct communication with LoginDisplayHost and UserManager.
(...skipping 23 matching lines...) Expand all
43 scoped_refptr<Authenticator> authenticator_; 43 scoped_refptr<Authenticator> authenticator_;
44 UserContext expected_user_context_; 44 UserContext expected_user_context_;
45 bool should_launch_browser_; 45 bool should_launch_browser_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(FakeLoginUtils); 47 DISALLOW_COPY_AND_ASSIGN(FakeLoginUtils);
48 }; 48 };
49 49
50 } // namespace chromeos 50 } // namespace chromeos
51 51
52 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_ 52 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698