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

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

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 #include "chrome/browser/sync/profile_sync_components_factory_mock.h" 5 #include "chrome/browser/sync/profile_sync_components_factory_mock.h"
6 6
7 #include "components/sync_driver/change_processor.h" 7 #include "components/sync_driver/change_processor.h"
8 #include "components/sync_driver/local_device_info_provider_mock.h" 8 #include "components/sync_driver/local_device_info_provider_mock.h"
9 #include "components/sync_driver/model_associator.h" 9 #include "components/sync_driver/model_associator.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 19 matching lines...) Expand all
30 WillByDefault( 30 WillByDefault(
31 InvokeWithoutArgs( 31 InvokeWithoutArgs(
32 this, 32 this,
33 &ProfileSyncComponentsFactoryMock::MakeSyncComponents)); 33 &ProfileSyncComponentsFactoryMock::MakeSyncComponents));
34 } 34 }
35 35
36 ProfileSyncComponentsFactoryMock::~ProfileSyncComponentsFactoryMock() {} 36 ProfileSyncComponentsFactoryMock::~ProfileSyncComponentsFactoryMock() {}
37 37
38 scoped_ptr<syncer::AttachmentService> 38 scoped_ptr<syncer::AttachmentService>
39 ProfileSyncComponentsFactoryMock::CreateAttachmentService( 39 ProfileSyncComponentsFactoryMock::CreateAttachmentService(
40 scoped_ptr<syncer::AttachmentStore> attachment_store, 40 const scoped_refptr<syncer::AttachmentStore>& attachment_store,
41 const syncer::UserShare& user_share, 41 const syncer::UserShare& user_share,
42 const std::string& store_birthday, 42 const std::string& store_birthday,
43 syncer::ModelType model_type, 43 syncer::ModelType model_type,
44 syncer::AttachmentService::Delegate* delegate) { 44 syncer::AttachmentService::Delegate* delegate) {
45 return syncer::AttachmentServiceImpl::CreateForTest(); 45 return syncer::AttachmentServiceImpl::CreateForTest();
46 } 46 }
47 47
48 ProfileSyncComponentsFactory::SyncComponents 48 ProfileSyncComponentsFactory::SyncComponents
49 ProfileSyncComponentsFactoryMock::MakeSyncComponents() { 49 ProfileSyncComponentsFactoryMock::MakeSyncComponents() {
50 return SyncComponents(model_associator_.release(), 50 return SyncComponents(model_associator_.release(),
51 change_processor_.release()); 51 change_processor_.release());
52 } 52 }
53 53
54 scoped_ptr<sync_driver::LocalDeviceInfoProvider> 54 scoped_ptr<sync_driver::LocalDeviceInfoProvider>
55 ProfileSyncComponentsFactoryMock::CreateLocalDeviceInfoProvider() { 55 ProfileSyncComponentsFactoryMock::CreateLocalDeviceInfoProvider() {
56 return local_device_.Pass(); 56 return local_device_.Pass();
57 } 57 }
58 58
59 void ProfileSyncComponentsFactoryMock::SetLocalDeviceInfoProvider( 59 void ProfileSyncComponentsFactoryMock::SetLocalDeviceInfoProvider(
60 scoped_ptr<sync_driver::LocalDeviceInfoProvider> local_device) { 60 scoped_ptr<sync_driver::LocalDeviceInfoProvider> local_device) {
61 local_device_ = local_device.Pass(); 61 local_device_ = local_device.Pass();
62 } 62 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory_mock.h ('k') | components/dom_distiller/core/dom_distiller_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698