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

Side by Side Diff: chromeos/login/auth/test_attempt_state.h

Issue 391373002: Refactoring : Move AuthAttempt and Authenticators to chromeos/login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge w/ToT 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
« no previous file with comments | « chromeos/login/auth/mock_authenticator.cc ('k') | chromeos/login/auth/test_attempt_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_ 5 #ifndef CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_ 6 #define CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/chromeos/login/auth/auth_attempt_state.h" 9 #include "chromeos/chromeos_export.h"
10 #include "chromeos/login/auth/auth_attempt_state.h"
10 #include "chromeos/login/auth/auth_status_consumer.h" 11 #include "chromeos/login/auth/auth_status_consumer.h"
11 #include "google_apis/gaia/gaia_auth_consumer.h" 12 #include "google_apis/gaia/gaia_auth_consumer.h"
12 13
13 namespace chromeos { 14 namespace chromeos {
14 15
15 class UserContext; 16 class UserContext;
16 17
17 class TestAttemptState : public AuthAttemptState { 18 class CHROMEOS_EXPORT TestAttemptState : public AuthAttemptState {
18 public: 19 public:
19 TestAttemptState(const UserContext& credentials, const bool user_is_new); 20 TestAttemptState(const UserContext& credentials, const bool user_is_new);
20 21
21 virtual ~TestAttemptState(); 22 virtual ~TestAttemptState();
22 23
23 // Act as though an online login attempt completed already. 24 // Act as though an online login attempt completed already.
24 void PresetOnlineLoginStatus(const AuthFailure& outcome); 25 void PresetOnlineLoginStatus(const AuthFailure& outcome);
25 26
26 // The next attempt will not allow HOSTED accounts to log in. 27 // The next attempt will not allow HOSTED accounts to log in.
27 void DisableHosted(); 28 void DisableHosted();
(...skipping 10 matching lines...) Expand all
38 virtual bool cryptohome_complete() OVERRIDE; 39 virtual bool cryptohome_complete() OVERRIDE;
39 virtual bool cryptohome_outcome() OVERRIDE; 40 virtual bool cryptohome_outcome() OVERRIDE;
40 virtual cryptohome::MountError cryptohome_code() OVERRIDE; 41 virtual cryptohome::MountError cryptohome_code() OVERRIDE;
41 42
42 private: 43 private:
43 DISALLOW_COPY_AND_ASSIGN(TestAttemptState); 44 DISALLOW_COPY_AND_ASSIGN(TestAttemptState);
44 }; 45 };
45 46
46 } // namespace chromeos 47 } // namespace chromeos
47 48
48 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_ 49 #endif // CHROMEOS_LOGIN_AUTH_TEST_ATTEMPT_STATE_H_
OLDNEW
« no previous file with comments | « chromeos/login/auth/mock_authenticator.cc ('k') | chromeos/login/auth/test_attempt_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698