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

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

Issue 9414020: [Sync] Switch Extension Settings DTC to use ProfilesyncComponentsFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove RunWithSyncableService and clean up Created 8 years, 10 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_COMPONENTS_FACTORY_MOCK_H__ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/sync/profile_sync_service.h" 10 #include "chrome/browser/sync/profile_sync_service.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 WebDataService* web_data_service)); 46 WebDataService* web_data_service));
47 MOCK_CONST_METHOD1(GetAutocompleteSyncableService, 47 MOCK_CONST_METHOD1(GetAutocompleteSyncableService,
48 base::WeakPtr<SyncableService>( 48 base::WeakPtr<SyncableService>(
49 WebDataService* web_data_service)); 49 WebDataService* web_data_service));
50 MOCK_METHOD2(CreateBookmarkSyncComponents, 50 MOCK_METHOD2(CreateBookmarkSyncComponents,
51 SyncComponents(ProfileSyncService* profile_sync_service, 51 SyncComponents(ProfileSyncService* profile_sync_service,
52 browser_sync::UnrecoverableErrorHandler* error_handler)); 52 browser_sync::UnrecoverableErrorHandler* error_handler));
53 MOCK_METHOD2(CreateExtensionSyncComponents, 53 MOCK_METHOD2(CreateExtensionSyncComponents,
54 SyncComponents(ProfileSyncService* profile_sync_service, 54 SyncComponents(ProfileSyncService* profile_sync_service,
55 browser_sync::UnrecoverableErrorHandler* error_handler)); 55 browser_sync::UnrecoverableErrorHandler* error_handler));
56 MOCK_METHOD4(CreateExtensionOrAppSettingSyncComponents, 56 MOCK_METHOD3(CreateExtensionOrAppSettingSyncComponents,
57 SyncComponents(syncable::ModelType model_type, 57 SyncComponents(syncable::ModelType model_type,
58 SyncableService* settings_service,
59 ProfileSyncService* profile_sync_service, 58 ProfileSyncService* profile_sync_service,
60 browser_sync::UnrecoverableErrorHandler* error_handler)); 59 browser_sync::UnrecoverableErrorHandler* error_handler));
61 MOCK_METHOD3(CreatePasswordSyncComponents, 60 MOCK_METHOD3(CreatePasswordSyncComponents,
62 SyncComponents( 61 SyncComponents(
63 ProfileSyncService* profile_sync_service, 62 ProfileSyncService* profile_sync_service,
64 PasswordStore* password_store, 63 PasswordStore* password_store,
65 browser_sync::UnrecoverableErrorHandler* error_handler)); 64 browser_sync::UnrecoverableErrorHandler* error_handler));
66 MOCK_METHOD2(CreatePreferenceSyncComponents, 65 MOCK_METHOD2(CreatePreferenceSyncComponents,
67 SyncComponents(ProfileSyncService* profile_sync_service, 66 SyncComponents(ProfileSyncService* profile_sync_service,
68 browser_sync::UnrecoverableErrorHandler* error_handler)); 67 browser_sync::UnrecoverableErrorHandler* error_handler));
(...skipping 18 matching lines...) Expand all
87 browser_sync::UnrecoverableErrorHandler* error_handler)); 86 browser_sync::UnrecoverableErrorHandler* error_handler));
88 87
89 private: 88 private:
90 SyncComponents MakeSyncComponents(); 89 SyncComponents MakeSyncComponents();
91 90
92 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; 91 scoped_ptr<browser_sync::AssociatorInterface> model_associator_;
93 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; 92 scoped_ptr<browser_sync::ChangeProcessor> change_processor_;
94 }; 93 };
95 94
96 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ 95 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698