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

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

Issue 328383003: Revert of Introduce SessionManager that will contain code to start user session on Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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_MOCK_LOGIN_UTILS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 13 matching lines...) Expand all
24 24
25 class LoginStatusConsumer; 25 class LoginStatusConsumer;
26 class UserContext; 26 class UserContext;
27 27
28 class MockLoginUtils : public LoginUtils { 28 class MockLoginUtils : public LoginUtils {
29 public: 29 public:
30 MockLoginUtils(); 30 MockLoginUtils();
31 virtual ~MockLoginUtils(); 31 virtual ~MockLoginUtils();
32 32
33 MOCK_METHOD2(DoBrowserLaunch, void(Profile*, LoginDisplayHost*)); 33 MOCK_METHOD2(DoBrowserLaunch, void(Profile*, LoginDisplayHost*));
34 MOCK_METHOD4(PrepareProfile, 34 MOCK_METHOD5(PrepareProfile,
35 void(const UserContext&, 35 void(const UserContext&, const std::string&,
36 bool, bool, LoginUtils::Delegate*)); 36 bool, bool, LoginUtils::Delegate*));
37 MOCK_METHOD1(DelegateDeleted, void(LoginUtils::Delegate*)); 37 MOCK_METHOD1(DelegateDeleted, void(LoginUtils::Delegate*));
38 MOCK_METHOD1(CompleteOffTheRecordLogin, void(const GURL&)); 38 MOCK_METHOD1(CompleteOffTheRecordLogin, void(const GURL&));
39 MOCK_METHOD1(SetFirstLoginPrefs, void(PrefService*));
39 MOCK_METHOD1(CreateAuthenticator, 40 MOCK_METHOD1(CreateAuthenticator,
40 scoped_refptr<Authenticator>(LoginStatusConsumer*)); 41 scoped_refptr<Authenticator>(LoginStatusConsumer*));
42 MOCK_METHOD1(RestoreAuthenticationSession, void(Profile*));
41 MOCK_METHOD1(StartTokenServices, void(Profile*)); 43 MOCK_METHOD1(StartTokenServices, void(Profile*));
42 MOCK_METHOD2(TransferDefaultCookiesAndServerBoundCerts, 44 MOCK_METHOD2(TransferDefaultCookiesAndServerBoundCerts,
43 void(Profile*, Profile*)); 45 void(Profile*, Profile*));
44 MOCK_METHOD2(TransferDefaultAuthCache, void(Profile*, Profile*)); 46 MOCK_METHOD2(TransferDefaultAuthCache, void(Profile*, Profile*));
45 MOCK_METHOD0(StopBackgroundFetchers, void(void)); 47 MOCK_METHOD0(StopBackgroundFetchers, void(void));
48 MOCK_METHOD1(InitRlzDelayed, void(Profile*));
46 49
47 void DelegateToFake(); 50 void DelegateToFake();
48 FakeLoginUtils* GetFakeLoginUtils(); 51 FakeLoginUtils* GetFakeLoginUtils();
49 52
50 private: 53 private:
51 scoped_ptr<FakeLoginUtils> fake_login_utils_; 54 scoped_ptr<FakeLoginUtils> fake_login_utils_;
52 }; 55 };
53 56
54 } // namespace chromeos 57 } // namespace chromeos
55 58
56 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_ 59 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils_browsertest.cc ('k') | chrome/browser/chromeos/login/mock_login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698