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

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

Issue 548373003: Move AttachmentStore ownership to datatype (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SyncableService related changes Created 6 years, 3 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 const base::FilePath& sync_folder)); 46 const base::FilePath& sync_folder));
47 47
48 virtual scoped_ptr<browser_sync::LocalDeviceInfoProvider> 48 virtual scoped_ptr<browser_sync::LocalDeviceInfoProvider>
49 CreateLocalDeviceInfoProvider() OVERRIDE; 49 CreateLocalDeviceInfoProvider() OVERRIDE;
50 void SetLocalDeviceInfoProvider( 50 void SetLocalDeviceInfoProvider(
51 scoped_ptr<browser_sync::LocalDeviceInfoProvider> local_device); 51 scoped_ptr<browser_sync::LocalDeviceInfoProvider> local_device);
52 52
53 MOCK_METHOD1(GetSyncableServiceForType, 53 MOCK_METHOD1(GetSyncableServiceForType,
54 base::WeakPtr<syncer::SyncableService>(syncer::ModelType)); 54 base::WeakPtr<syncer::SyncableService>(syncer::ModelType));
55 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService( 55 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService(
56 const scoped_refptr<syncer::AttachmentStore>& attachment_store,
56 const syncer::UserShare& user_share, 57 const syncer::UserShare& user_share,
57 syncer::AttachmentService::Delegate* delegate) OVERRIDE; 58 syncer::AttachmentService::Delegate* delegate) OVERRIDE;
58 MOCK_METHOD2(CreateBookmarkSyncComponents, 59 MOCK_METHOD2(CreateBookmarkSyncComponents,
59 SyncComponents(ProfileSyncService* profile_sync_service, 60 SyncComponents(ProfileSyncService* profile_sync_service,
60 sync_driver::DataTypeErrorHandler* error_handler)); 61 sync_driver::DataTypeErrorHandler* error_handler));
61 #if defined(ENABLE_THEMES) 62 #if defined(ENABLE_THEMES)
62 MOCK_METHOD2(CreateThemeSyncComponents, 63 MOCK_METHOD2(CreateThemeSyncComponents,
63 SyncComponents(ProfileSyncService* profile_sync_service, 64 SyncComponents(ProfileSyncService* profile_sync_service,
64 sync_driver::DataTypeErrorHandler* error_handler)); 65 sync_driver::DataTypeErrorHandler* error_handler));
65 #endif 66 #endif
66 MOCK_METHOD3(CreateTypedUrlSyncComponents, 67 MOCK_METHOD3(CreateTypedUrlSyncComponents,
67 SyncComponents( 68 SyncComponents(
68 ProfileSyncService* profile_sync_service, 69 ProfileSyncService* profile_sync_service,
69 history::HistoryBackend* history_backend, 70 history::HistoryBackend* history_backend,
70 sync_driver::DataTypeErrorHandler* error_handler)); 71 sync_driver::DataTypeErrorHandler* error_handler));
71 72
72 private: 73 private:
73 SyncComponents MakeSyncComponents(); 74 SyncComponents MakeSyncComponents();
74 75
75 scoped_ptr<sync_driver::AssociatorInterface> model_associator_; 76 scoped_ptr<sync_driver::AssociatorInterface> model_associator_;
76 scoped_ptr<sync_driver::ChangeProcessor> change_processor_; 77 scoped_ptr<sync_driver::ChangeProcessor> change_processor_;
77 // LocalDeviceInfoProvider is initially owned by this class, 78 // LocalDeviceInfoProvider is initially owned by this class,
78 // transferred to caller when CreateLocalDeviceInfoProvider is called. 79 // transferred to caller when CreateLocalDeviceInfoProvider is called.
79 scoped_ptr<browser_sync::LocalDeviceInfoProvider> local_device_; 80 scoped_ptr<browser_sync::LocalDeviceInfoProvider> local_device_;
80 }; 81 };
81 82
82 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ 83 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698