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

Side by Side Diff: components/sync/driver/fake_generic_change_processor.cc

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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 <utility> 7 #include <utility>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "components/sync/api/syncable_service.h" 11 #include "components/sync/api/syncable_service.h"
12 #include "components/sync/core/attachments/attachment_service_impl.h" 12 #include "components/sync/core/attachments/attachment_service_impl.h"
13 13
14 namespace sync_driver { 14 namespace sync_driver {
15 15
16 FakeGenericChangeProcessor::FakeGenericChangeProcessor( 16 FakeGenericChangeProcessor::FakeGenericChangeProcessor(syncer::ModelType type,
17 syncer::ModelType type, 17 SyncClient* sync_client)
18 SyncClient* sync_client)
19 : GenericChangeProcessor(type, 18 : GenericChangeProcessor(type,
20 NULL, 19 NULL,
21 base::WeakPtr<syncer::SyncableService>(), 20 base::WeakPtr<syncer::SyncableService>(),
22 base::WeakPtr<syncer::SyncMergeResult>(), 21 base::WeakPtr<syncer::SyncMergeResult>(),
23 NULL, 22 NULL,
24 sync_client, 23 sync_client,
25 nullptr), 24 nullptr),
26 sync_model_has_user_created_nodes_(true), 25 sync_model_has_user_created_nodes_(true),
27 sync_model_has_user_created_nodes_success_(true) { 26 sync_model_has_user_created_nodes_success_(true) {}
28 }
29 27
30 FakeGenericChangeProcessor::~FakeGenericChangeProcessor() {} 28 FakeGenericChangeProcessor::~FakeGenericChangeProcessor() {}
31 29
32 void FakeGenericChangeProcessor::set_sync_model_has_user_created_nodes( 30 void FakeGenericChangeProcessor::set_sync_model_has_user_created_nodes(
33 bool has_nodes) { 31 bool has_nodes) {
34 sync_model_has_user_created_nodes_ = has_nodes; 32 sync_model_has_user_created_nodes_ = has_nodes;
35 } 33 }
36 void FakeGenericChangeProcessor::set_sync_model_has_user_created_nodes_success( 34 void FakeGenericChangeProcessor::set_sync_model_has_user_created_nodes_success(
37 bool success) { 35 bool success) {
38 sync_model_has_user_created_nodes_success_ = success; 36 sync_model_has_user_created_nodes_success_ = success;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 syncer::ModelType type, 76 syncer::ModelType type,
79 syncer::UserShare* user_share, 77 syncer::UserShare* user_share,
80 syncer::DataTypeErrorHandler* error_handler, 78 syncer::DataTypeErrorHandler* error_handler,
81 const base::WeakPtr<syncer::SyncableService>& local_service, 79 const base::WeakPtr<syncer::SyncableService>& local_service,
82 const base::WeakPtr<syncer::SyncMergeResult>& merge_result, 80 const base::WeakPtr<syncer::SyncMergeResult>& merge_result,
83 SyncClient* sync_client) { 81 SyncClient* sync_client) {
84 return std::move(processor_); 82 return std::move(processor_);
85 } 83 }
86 84
87 } // namespace sync_driver 85 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync/driver/fake_generic_change_processor.h ('k') | components/sync/driver/fake_sync_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698