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

Side by Side Diff: chrome/browser/chromeos/login/test_login_utils.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_LOGIN_UTILS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TEST_LOGIN_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_LOGIN_UTILS_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_LOGIN_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "chrome/browser/chromeos/login/authenticator.h" 11 #include "chrome/browser/chromeos/login/authenticator.h"
12 #include "chrome/browser/chromeos/login/login_utils.h" 12 #include "chrome/browser/chromeos/login/login_utils.h"
13 #include "google_apis/gaia/google_service_auth_error.h" 13 #include "google_apis/gaia/google_service_auth_error.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 class Profile; 16 class Profile;
17 17
18 namespace chromeos { 18 namespace chromeos {
19 19
20 class LoginStatusConsumer; 20 class LoginStatusConsumer;
21 21
22 class TestLoginUtils : public LoginUtils { 22 class TestLoginUtils : public LoginUtils {
23 public: 23 public:
24 TestLoginUtils(const std::string& expected_username, 24 TestLoginUtils(const std::string& expected_username,
25 const std::string& expected_password); 25 const std::string& expected_password);
26 virtual ~TestLoginUtils(); 26 virtual ~TestLoginUtils();
27 27
28 virtual void DoBrowserLaunch(Profile* profile, 28 virtual void DoBrowserLaunch(Profile* profile,
29 LoginDisplayHost* login_host) OVERRIDE {} 29 LoginDisplayHost* login_host) OVERRIDE {}
30 virtual void PrepareProfile(const std::string& username, 30 virtual void PrepareProfile(const UserCredentials& credentials,
31 const std::string& display_email, 31 const std::string& display_email,
32 const std::string& password,
33 bool using_oauth, 32 bool using_oauth,
34 bool has_cookies, 33 bool has_cookies,
35 Delegate* delegate) OVERRIDE; 34 Delegate* delegate) OVERRIDE;
36 35
37 virtual void DelegateDeleted(Delegate* delegate) OVERRIDE; 36 virtual void DelegateDeleted(Delegate* delegate) OVERRIDE;
38 37
39 virtual void CompleteOffTheRecordLogin(const GURL& start_url) OVERRIDE {} 38 virtual void CompleteOffTheRecordLogin(const GURL& start_url) OVERRIDE {}
40 39
41 virtual void SetFirstLoginPrefs(PrefService* prefs) OVERRIDE {} 40 virtual void SetFirstLoginPrefs(PrefService* prefs) OVERRIDE {}
42 41
(...skipping 12 matching lines...) Expand all
55 std::string expected_username_; 54 std::string expected_username_;
56 std::string expected_password_; 55 std::string expected_password_;
57 std::string auth_token_; 56 std::string auth_token_;
58 57
59 DISALLOW_COPY_AND_ASSIGN(TestLoginUtils); 58 DISALLOW_COPY_AND_ASSIGN(TestLoginUtils);
60 }; 59 };
61 60
62 } // namespace chromeos 61 } // namespace chromeos
63 62
64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_LOGIN_UTILS_H_ 63 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_LOGIN_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/test_attempt_state.cc ('k') | chrome/browser/chromeos/login/test_login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698