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

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

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase4 Created 7 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TEST_ATTEMPT_STATE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/chromeos/login/auth_attempt_state.h" 11 #include "chrome/browser/chromeos/login/auth_attempt_state.h"
12 #include "chrome/browser/chromeos/login/login_status_consumer.h" 12 #include "chrome/browser/chromeos/login/login_status_consumer.h"
13 #include "chrome/browser/chromeos/login/user.h" 13 #include "chrome/browser/chromeos/login/user.h"
14 #include "google_apis/gaia/gaia_auth_consumer.h" 14 #include "google_apis/gaia/gaia_auth_consumer.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 class TestAttemptState : public AuthAttemptState { 18 class TestAttemptState : public AuthAttemptState {
19 public: 19 public:
20 TestAttemptState(const std::string& username, 20 TestAttemptState(const UserCredentials& credentials,
21 const std::string& password,
22 const std::string& ascii_hash, 21 const std::string& ascii_hash,
23 const std::string& login_token, 22 const std::string& login_token,
24 const std::string& login_captcha, 23 const std::string& login_captcha,
25 const User::UserType user_type, 24 const User::UserType user_type,
26 const bool user_is_new); 25 const bool user_is_new);
27 26
28 TestAttemptState(const std::string& username, const std::string& ascii_hash); 27 TestAttemptState(const std::string& username, const std::string& ascii_hash);
29 28
30 virtual ~TestAttemptState(); 29 virtual ~TestAttemptState();
31 30
(...skipping 17 matching lines...) Expand all
49 virtual bool cryptohome_outcome() OVERRIDE; 48 virtual bool cryptohome_outcome() OVERRIDE;
50 virtual cryptohome::MountError cryptohome_code() OVERRIDE; 49 virtual cryptohome::MountError cryptohome_code() OVERRIDE;
51 50
52 private: 51 private:
53 DISALLOW_COPY_AND_ASSIGN(TestAttemptState); 52 DISALLOW_COPY_AND_ASSIGN(TestAttemptState);
54 }; 53 };
55 54
56 } // namespace chromeos 55 } // namespace chromeos
57 56
58 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_ 57 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_ATTEMPT_STATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screen_locker_tester.cc ('k') | chrome/browser/chromeos/login/test_attempt_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698