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

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

Issue 367153005: Sync: Refactoring of DEVICE_INFO syncable type - Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed scoped_ptr issue in ProfileSyncService constructor Created 6 years, 5 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_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 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/sync/profile_sync_components_factory.h" 9 #include "chrome/browser/sync/profile_sync_components_factory.h"
10 #include "chrome/browser/sync/profile_sync_service.h" 10 #include "chrome/browser/sync/profile_sync_service.h"
(...skipping 26 matching lines...) Expand all
37 browser_sync::DataTypeManagerObserver* observer, 37 browser_sync::DataTypeManagerObserver* observer,
38 browser_sync::FailedDataTypesHandler* 38 browser_sync::FailedDataTypesHandler*
39 failed_datatypes_handler)); 39 failed_datatypes_handler));
40 MOCK_METHOD5(CreateSyncBackendHost, 40 MOCK_METHOD5(CreateSyncBackendHost,
41 browser_sync::SyncBackendHost*( 41 browser_sync::SyncBackendHost*(
42 const std::string& name, 42 const std::string& name,
43 Profile* profile, 43 Profile* profile,
44 invalidation::InvalidationService* invalidator, 44 invalidation::InvalidationService* invalidator,
45 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, 45 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs,
46 const base::FilePath& sync_folder)); 46 const base::FilePath& sync_folder));
47
48 virtual scoped_ptr<browser_sync::LocalDeviceInfoProvider>
49 CreateLocalDeviceInfoProvider() OVERRIDE;
50 MOCK_METHOD0(CreateLocalDeviceInfoProviderMock, LocalDeviceInfoProvider*());
51
47 MOCK_METHOD1(GetSyncableServiceForType, 52 MOCK_METHOD1(GetSyncableServiceForType,
48 base::WeakPtr<syncer::SyncableService>(syncer::ModelType)); 53 base::WeakPtr<syncer::SyncableService>(syncer::ModelType));
49 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService( 54 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService(
50 const syncer::UserShare& user_share, 55 const syncer::UserShare& user_share,
51 syncer::AttachmentService::Delegate* delegate) OVERRIDE; 56 syncer::AttachmentService::Delegate* delegate) OVERRIDE;
52 MOCK_METHOD2(CreateBookmarkSyncComponents, 57 MOCK_METHOD2(CreateBookmarkSyncComponents,
53 SyncComponents(ProfileSyncService* profile_sync_service, 58 SyncComponents(ProfileSyncService* profile_sync_service,
54 browser_sync::DataTypeErrorHandler* error_handler)); 59 browser_sync::DataTypeErrorHandler* error_handler));
55 #if defined(ENABLE_THEMES) 60 #if defined(ENABLE_THEMES)
56 MOCK_METHOD2(CreateThemeSyncComponents, 61 MOCK_METHOD2(CreateThemeSyncComponents,
57 SyncComponents(ProfileSyncService* profile_sync_service, 62 SyncComponents(ProfileSyncService* profile_sync_service,
58 browser_sync::DataTypeErrorHandler* error_handler)); 63 browser_sync::DataTypeErrorHandler* error_handler));
59 #endif 64 #endif
60 MOCK_METHOD3(CreateTypedUrlSyncComponents, 65 MOCK_METHOD3(CreateTypedUrlSyncComponents,
61 SyncComponents( 66 SyncComponents(
62 ProfileSyncService* profile_sync_service, 67 ProfileSyncService* profile_sync_service,
63 history::HistoryBackend* history_backend, 68 history::HistoryBackend* history_backend,
64 browser_sync::DataTypeErrorHandler* error_handler)); 69 browser_sync::DataTypeErrorHandler* error_handler));
65 70
66 private: 71 private:
67 SyncComponents MakeSyncComponents(); 72 SyncComponents MakeSyncComponents();
68 73
69 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; 74 scoped_ptr<browser_sync::AssociatorInterface> model_associator_;
70 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; 75 scoped_ptr<browser_sync::ChangeProcessor> change_processor_;
71 }; 76 };
72 77
73 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ 78 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698