OLD | NEW |
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" | |
11 #include "sync/api/attachments/attachment_store.h" | 10 #include "sync/api/attachments/attachment_store.h" |
12 #include "sync/internal_api/public/attachments/attachment_service_impl.h" | 11 #include "sync/internal_api/public/attachments/attachment_service_impl.h" |
13 | 12 |
14 using sync_driver::AssociatorInterface; | 13 using sync_driver::AssociatorInterface; |
15 using sync_driver::ChangeProcessor; | 14 using sync_driver::ChangeProcessor; |
16 using testing::_; | 15 using testing::_; |
17 using testing::InvokeWithoutArgs; | 16 using testing::InvokeWithoutArgs; |
18 using testing::Return; | 17 using testing::Return; |
19 | 18 |
20 ProfileSyncComponentsFactoryMock::ProfileSyncComponentsFactoryMock() | 19 ProfileSyncComponentsFactoryMock::ProfileSyncComponentsFactoryMock() |
(...skipping 17 matching lines...) Expand all Loading... |
38 scoped_ptr<syncer::AttachmentService> | 37 scoped_ptr<syncer::AttachmentService> |
39 ProfileSyncComponentsFactoryMock::CreateAttachmentService( | 38 ProfileSyncComponentsFactoryMock::CreateAttachmentService( |
40 scoped_ptr<syncer::AttachmentStoreForSync> attachment_store, | 39 scoped_ptr<syncer::AttachmentStoreForSync> attachment_store, |
41 const syncer::UserShare& user_share, | 40 const syncer::UserShare& user_share, |
42 const std::string& store_birthday, | 41 const std::string& store_birthday, |
43 syncer::ModelType model_type, | 42 syncer::ModelType model_type, |
44 syncer::AttachmentService::Delegate* delegate) { | 43 syncer::AttachmentService::Delegate* delegate) { |
45 return syncer::AttachmentServiceImpl::CreateForTest(); | 44 return syncer::AttachmentServiceImpl::CreateForTest(); |
46 } | 45 } |
47 | 46 |
48 ProfileSyncComponentsFactory::SyncComponents | 47 sync_driver::SyncApiComponentFactory::SyncComponents |
49 ProfileSyncComponentsFactoryMock::MakeSyncComponents() { | 48 ProfileSyncComponentsFactoryMock::MakeSyncComponents() { |
50 return SyncComponents(model_associator_.release(), | 49 return sync_driver::SyncApiComponentFactory::SyncComponents( |
51 change_processor_.release()); | 50 model_associator_.release(), change_processor_.release()); |
52 } | 51 } |
53 | 52 |
54 scoped_ptr<sync_driver::LocalDeviceInfoProvider> | 53 scoped_ptr<sync_driver::LocalDeviceInfoProvider> |
55 ProfileSyncComponentsFactoryMock::CreateLocalDeviceInfoProvider() { | 54 ProfileSyncComponentsFactoryMock::CreateLocalDeviceInfoProvider() { |
56 return local_device_.Pass(); | 55 return local_device_.Pass(); |
57 } | 56 } |
58 | 57 |
59 void ProfileSyncComponentsFactoryMock::SetLocalDeviceInfoProvider( | 58 void ProfileSyncComponentsFactoryMock::SetLocalDeviceInfoProvider( |
60 scoped_ptr<sync_driver::LocalDeviceInfoProvider> local_device) { | 59 scoped_ptr<sync_driver::LocalDeviceInfoProvider> local_device) { |
61 local_device_ = local_device.Pass(); | 60 local_device_ = local_device.Pass(); |
62 } | 61 } |
OLD | NEW |