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

Side by Side Diff: chrome/browser/sync/profile_sync_service_mock.h

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 12 matching lines...) Expand all
23 // no-arg constructor provided so TestingProfile can use NiceMock. 23 // no-arg constructor provided so TestingProfile can use NiceMock.
24 ProfileSyncServiceMock(); 24 ProfileSyncServiceMock();
25 explicit ProfileSyncServiceMock(Profile* profile); 25 explicit ProfileSyncServiceMock(Profile* profile);
26 virtual ~ProfileSyncServiceMock(); 26 virtual ~ProfileSyncServiceMock();
27 27
28 // A utility used by sync tests to create a TestingProfile with a Google 28 // A utility used by sync tests to create a TestingProfile with a Google
29 // Services username stored in a (Testing)PrefService. 29 // Services username stored in a (Testing)PrefService.
30 static TestingProfile* MakeSignedInTestingProfile(); 30 static TestingProfile* MakeSignedInTestingProfile();
31 31
32 // Helper routine to be used in conjunction with 32 // Helper routine to be used in conjunction with
33 // ProfileKeyedServiceFactory::SetTestingFactory(). 33 // BrowserContextKeyedServiceFactory::SetTestingFactory().
34 static ProfileKeyedService* BuildMockProfileSyncService( 34 static BrowserContextKeyedService* BuildMockProfileSyncService(
35 content::BrowserContext* profile); 35 content::BrowserContext* profile);
36 36
37 MOCK_METHOD0(DisableForUser, void()); 37 MOCK_METHOD0(DisableForUser, void());
38 MOCK_METHOD3(OnBackendInitialized, 38 MOCK_METHOD3(OnBackendInitialized,
39 void(const syncer::WeakHandle<syncer::JsBackend>&, 39 void(const syncer::WeakHandle<syncer::JsBackend>&,
40 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&, 40 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&,
41 bool)); 41 bool));
42 MOCK_METHOD0(OnSyncCycleCompleted, void()); 42 MOCK_METHOD0(OnSyncCycleCompleted, void());
43 MOCK_METHOD0(OnAuthError, void()); 43 MOCK_METHOD0(OnAuthError, void());
44 MOCK_METHOD4(OnUserSubmittedAuth, 44 MOCK_METHOD4(OnUserSubmittedAuth,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); 110 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType());
111 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); 111 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time());
112 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); 112 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time());
113 113
114 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); 114 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase));
115 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, 115 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase,
116 PassphraseType type)); 116 PassphraseType type));
117 }; 117 };
118 118
119 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 119 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698