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_service.h" | |
10 #include "components/sync/api/attachments/attachment_store.h" | |
11 #include "components/sync/device_info/local_device_info_provider_mock.h" | 9 #include "components/sync/device_info/local_device_info_provider_mock.h" |
12 #include "components/sync/driver/change_processor.h" | 10 #include "components/sync/driver/change_processor.h" |
13 #include "components/sync/driver/model_associator.h" | 11 #include "components/sync/driver/model_associator.h" |
| 12 #include "components/sync/model/attachments/attachment_service.h" |
| 13 #include "components/sync/model/attachments/attachment_store.h" |
14 | 14 |
15 using testing::_; | 15 using testing::_; |
16 using testing::InvokeWithoutArgs; | 16 using testing::InvokeWithoutArgs; |
17 using testing::Return; | 17 using testing::Return; |
18 | 18 |
19 namespace syncer { | 19 namespace syncer { |
20 | 20 |
21 SyncApiComponentFactoryMock::SyncApiComponentFactoryMock() | 21 SyncApiComponentFactoryMock::SyncApiComponentFactoryMock() |
22 : local_device_(new LocalDeviceInfoProviderMock()) {} | 22 : local_device_(new LocalDeviceInfoProviderMock()) {} |
23 | 23 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 SyncApiComponentFactoryMock::CreateLocalDeviceInfoProvider() { | 57 SyncApiComponentFactoryMock::CreateLocalDeviceInfoProvider() { |
58 return std::move(local_device_); | 58 return std::move(local_device_); |
59 } | 59 } |
60 | 60 |
61 void SyncApiComponentFactoryMock::SetLocalDeviceInfoProvider( | 61 void SyncApiComponentFactoryMock::SetLocalDeviceInfoProvider( |
62 std::unique_ptr<LocalDeviceInfoProvider> local_device) { | 62 std::unique_ptr<LocalDeviceInfoProvider> local_device) { |
63 local_device_ = std::move(local_device); | 63 local_device_ = std::move(local_device); |
64 } | 64 } |
65 | 65 |
66 } // namespace syncer | 66 } // namespace syncer |
OLD | NEW |