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 "components/sync/driver/sync_api_component_factory_mock.h" | 5 #include "components/sync/driver/sync_api_component_factory_mock.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "components/sync/api/attachments/attachment_store.h" | 9 #include "components/sync/api/attachments/attachment_store.h" |
10 #include "components/sync/core/attachments/attachment_service_impl.h" | 10 #include "components/sync/core/attachments/attachment_service_impl.h" |
| 11 #include "components/sync/device_info/local_device_info_provider_mock.h" |
11 #include "components/sync/driver/change_processor.h" | 12 #include "components/sync/driver/change_processor.h" |
12 #include "components/sync/driver/local_device_info_provider_mock.h" | |
13 #include "components/sync/driver/model_associator.h" | 13 #include "components/sync/driver/model_associator.h" |
14 | 14 |
15 using sync_driver::AssociatorInterface; | 15 using sync_driver::AssociatorInterface; |
16 using sync_driver::ChangeProcessor; | 16 using sync_driver::ChangeProcessor; |
17 using testing::_; | 17 using testing::_; |
18 using testing::InvokeWithoutArgs; | 18 using testing::InvokeWithoutArgs; |
19 using testing::Return; | 19 using testing::Return; |
20 | 20 |
21 SyncApiComponentFactoryMock::SyncApiComponentFactoryMock() | 21 SyncApiComponentFactoryMock::SyncApiComponentFactoryMock() |
22 : local_device_(new sync_driver::LocalDeviceInfoProviderMock()) {} | 22 : local_device_(new sync_driver::LocalDeviceInfoProviderMock()) {} |
(...skipping 29 matching lines...) Expand all Loading... |
52 | 52 |
53 std::unique_ptr<sync_driver::LocalDeviceInfoProvider> | 53 std::unique_ptr<sync_driver::LocalDeviceInfoProvider> |
54 SyncApiComponentFactoryMock::CreateLocalDeviceInfoProvider() { | 54 SyncApiComponentFactoryMock::CreateLocalDeviceInfoProvider() { |
55 return std::move(local_device_); | 55 return std::move(local_device_); |
56 } | 56 } |
57 | 57 |
58 void SyncApiComponentFactoryMock::SetLocalDeviceInfoProvider( | 58 void SyncApiComponentFactoryMock::SetLocalDeviceInfoProvider( |
59 std::unique_ptr<sync_driver::LocalDeviceInfoProvider> local_device) { | 59 std::unique_ptr<sync_driver::LocalDeviceInfoProvider> local_device) { |
60 local_device_ = std::move(local_device); | 60 local_device_ = std::move(local_device); |
61 } | 61 } |
OLD | NEW |