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

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

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

Powered by Google App Engine
This is Rietveld 408576698