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

Side by Side Diff: components/sync_driver/fake_generic_change_processor.cc

Issue 272043002: Invoke AttachmentUploader and update AttachmentIds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build Created 6 years, 7 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 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/attachments/attachment_service_impl.h" 9 #include "sync/api/attachments/attachment_service_impl.h"
10 #include "sync/api/syncable_service.h" 10 #include "sync/api/syncable_service.h"
11 11
12 namespace browser_sync { 12 namespace browser_sync {
13 13
14 FakeGenericChangeProcessor::FakeGenericChangeProcessor() 14 FakeGenericChangeProcessor::FakeGenericChangeProcessor(
15 SyncApiComponentFactory* sync_factory)
15 : GenericChangeProcessor(NULL, 16 : GenericChangeProcessor(NULL,
16 base::WeakPtr<syncer::SyncableService>(), 17 base::WeakPtr<syncer::SyncableService>(),
17 base::WeakPtr<syncer::SyncMergeResult>(), 18 base::WeakPtr<syncer::SyncMergeResult>(),
18 NULL, 19 NULL,
19 syncer::AttachmentServiceImpl::CreateForTest()), 20 sync_factory),
20 sync_model_has_user_created_nodes_(true), 21 sync_model_has_user_created_nodes_(true),
21 sync_model_has_user_created_nodes_success_(true) {} 22 sync_model_has_user_created_nodes_success_(true) {}
22 23
23 FakeGenericChangeProcessor::~FakeGenericChangeProcessor() {} 24 FakeGenericChangeProcessor::~FakeGenericChangeProcessor() {}
24 25
25 void FakeGenericChangeProcessor::set_sync_model_has_user_created_nodes( 26 void FakeGenericChangeProcessor::set_sync_model_has_user_created_nodes(
26 bool has_nodes) { 27 bool has_nodes) {
27 sync_model_has_user_created_nodes_ = has_nodes; 28 sync_model_has_user_created_nodes_ = has_nodes;
28 } 29 }
29 void FakeGenericChangeProcessor::set_sync_model_has_user_created_nodes_success( 30 void FakeGenericChangeProcessor::set_sync_model_has_user_created_nodes_success(
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 : processor_(processor.Pass()) {} 69 : processor_(processor.Pass()) {}
69 70
70 FakeGenericChangeProcessorFactory::~FakeGenericChangeProcessorFactory() {} 71 FakeGenericChangeProcessorFactory::~FakeGenericChangeProcessorFactory() {}
71 72
72 scoped_ptr<GenericChangeProcessor> 73 scoped_ptr<GenericChangeProcessor>
73 FakeGenericChangeProcessorFactory::CreateGenericChangeProcessor( 74 FakeGenericChangeProcessorFactory::CreateGenericChangeProcessor(
74 syncer::UserShare* user_share, 75 syncer::UserShare* user_share,
75 browser_sync::DataTypeErrorHandler* error_handler, 76 browser_sync::DataTypeErrorHandler* error_handler,
76 const base::WeakPtr<syncer::SyncableService>& local_service, 77 const base::WeakPtr<syncer::SyncableService>& local_service,
77 const base::WeakPtr<syncer::SyncMergeResult>& merge_result, 78 const base::WeakPtr<syncer::SyncMergeResult>& merge_result,
78 scoped_ptr<syncer::AttachmentService> attachment_service) { 79 SyncApiComponentFactory* sync_factory) {
79 return processor_.PassAs<GenericChangeProcessor>(); 80 return processor_.PassAs<GenericChangeProcessor>();
80 } 81 }
81 82
82 } // namespace browser_sync 83 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/sync_driver/fake_generic_change_processor.h ('k') | components/sync_driver/generic_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698