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

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

Issue 651843003: [cros-login-refactor] Move CompleteOffTheRecordLogin to UserSessionManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 6 years, 2 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
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 19 matching lines...) Expand all
30 MockLoginUtils(); 30 MockLoginUtils();
31 virtual ~MockLoginUtils(); 31 virtual ~MockLoginUtils();
32 32
33 MOCK_METHOD2(RespectLocalePreference, void(Profile*, 33 MOCK_METHOD2(RespectLocalePreference, void(Profile*,
34 const base::Closure& callback)); 34 const base::Closure& callback));
35 MOCK_METHOD2(DoBrowserLaunch, void(Profile*, LoginDisplayHost*)); 35 MOCK_METHOD2(DoBrowserLaunch, void(Profile*, LoginDisplayHost*));
36 MOCK_METHOD4(PrepareProfile, 36 MOCK_METHOD4(PrepareProfile,
37 void(const UserContext&, 37 void(const UserContext&,
38 bool, bool, LoginUtils::Delegate*)); 38 bool, bool, LoginUtils::Delegate*));
39 MOCK_METHOD1(DelegateDeleted, void(LoginUtils::Delegate*)); 39 MOCK_METHOD1(DelegateDeleted, void(LoginUtils::Delegate*));
40 MOCK_METHOD1(CompleteOffTheRecordLogin, void(const GURL&));
41 MOCK_METHOD1(CreateAuthenticator, 40 MOCK_METHOD1(CreateAuthenticator,
42 scoped_refptr<Authenticator>(AuthStatusConsumer*)); 41 scoped_refptr<Authenticator>(AuthStatusConsumer*));
43 MOCK_METHOD1(StartTokenServices, void(Profile*)); 42 MOCK_METHOD1(StartTokenServices, void(Profile*));
44 MOCK_METHOD2(TransferDefaultCookiesAndChannelIDs, 43 MOCK_METHOD2(TransferDefaultCookiesAndChannelIDs,
45 void(Profile*, Profile*)); 44 void(Profile*, Profile*));
46 MOCK_METHOD2(TransferDefaultAuthCache, void(Profile*, Profile*)); 45 MOCK_METHOD2(TransferDefaultAuthCache, void(Profile*, Profile*));
47 MOCK_METHOD0(StopBackgroundFetchers, void(void)); 46 MOCK_METHOD0(StopBackgroundFetchers, void(void));
48 MOCK_METHOD2(RestartToApplyPerSessionFlagsIfNeed, 47 MOCK_METHOD2(RestartToApplyPerSessionFlagsIfNeed,
49 bool(Profile*, bool early_restart)); 48 bool(Profile*, bool early_restart));
50 49
51 void DelegateToFake(); 50 void DelegateToFake();
52 FakeLoginUtils* GetFakeLoginUtils(); 51 FakeLoginUtils* GetFakeLoginUtils();
53 52
54 private: 53 private:
55 scoped_ptr<FakeLoginUtils> fake_login_utils_; 54 scoped_ptr<FakeLoginUtils> fake_login_utils_;
56 }; 55 };
57 56
58 } // namespace chromeos 57 } // namespace chromeos
59 58
60 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_ 59 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698