OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/fake_generic_change_processor.h" | 5 #include "components/sync_driver/fake_generic_change_processor.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "sync/api/syncable_service.h" | 9 #include "sync/api/syncable_service.h" |
10 #include "sync/internal_api/public/attachments/attachment_service_impl.h" | 10 #include "sync/internal_api/public/attachments/attachment_service_impl.h" |
11 | 11 |
12 namespace sync_driver { | 12 namespace sync_driver { |
13 | 13 |
14 FakeGenericChangeProcessor::FakeGenericChangeProcessor( | 14 FakeGenericChangeProcessor::FakeGenericChangeProcessor( |
15 syncer::ModelType type, | 15 syncer::ModelType type, |
16 SyncApiComponentFactory* sync_factory) | 16 SyncApiComponentFactory* sync_factory) |
17 : GenericChangeProcessor(type, | 17 : GenericChangeProcessor(type, |
18 NULL, | 18 NULL, |
19 base::WeakPtr<syncer::SyncableService>(), | 19 base::WeakPtr<syncer::SyncableService>(), |
20 base::WeakPtr<syncer::SyncMergeResult>(), | 20 base::WeakPtr<syncer::SyncMergeResult>(), |
21 NULL, | 21 NULL, |
22 sync_factory, | 22 sync_factory, |
23 scoped_refptr<syncer::AttachmentStore>()), | 23 nullptr), |
24 sync_model_has_user_created_nodes_(true), | 24 sync_model_has_user_created_nodes_(true), |
25 sync_model_has_user_created_nodes_success_(true) { | 25 sync_model_has_user_created_nodes_success_(true) { |
26 } | 26 } |
27 | 27 |
28 FakeGenericChangeProcessor::~FakeGenericChangeProcessor() {} | 28 FakeGenericChangeProcessor::~FakeGenericChangeProcessor() {} |
29 | 29 |
30 void FakeGenericChangeProcessor::set_sync_model_has_user_created_nodes( | 30 void FakeGenericChangeProcessor::set_sync_model_has_user_created_nodes( |
31 bool has_nodes) { | 31 bool has_nodes) { |
32 sync_model_has_user_created_nodes_ = has_nodes; | 32 sync_model_has_user_created_nodes_ = has_nodes; |
33 } | 33 } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 syncer::ModelType type, | 76 syncer::ModelType type, |
77 syncer::UserShare* user_share, | 77 syncer::UserShare* user_share, |
78 DataTypeErrorHandler* error_handler, | 78 DataTypeErrorHandler* error_handler, |
79 const base::WeakPtr<syncer::SyncableService>& local_service, | 79 const base::WeakPtr<syncer::SyncableService>& local_service, |
80 const base::WeakPtr<syncer::SyncMergeResult>& merge_result, | 80 const base::WeakPtr<syncer::SyncMergeResult>& merge_result, |
81 SyncApiComponentFactory* sync_factory) { | 81 SyncApiComponentFactory* sync_factory) { |
82 return processor_.Pass(); | 82 return processor_.Pass(); |
83 } | 83 } |
84 | 84 |
85 } // namespace sync_driver | 85 } // namespace sync_driver |
OLD | NEW |