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

Unified Diff: sync/api/sync_change_processor_delegator.cc

Issue 151963002: Remove duplicated code from sync related unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename SyncChangeProcessorDelgate to SyncChangeProcessorDelgator. Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: sync/api/sync_change_processor_delegator.cc
diff --git a/sync/api/sync_change_processor_delegator.cc b/sync/api/sync_change_processor_delegator.cc
new file mode 100644
index 0000000000000000000000000000000000000000..09e1bdd7cfb88b59ea0631e4ad248af6eedf6c2d
--- /dev/null
+++ b/sync/api/sync_change_processor_delegator.cc
@@ -0,0 +1,28 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "sync/api/sync_change_processor_delegator.h"
+
+namespace syncer {
+
+SyncChangeProcessorDelegator::SyncChangeProcessorDelegator(
+ syncer::SyncChangeProcessor* recipient)
+ : recipient_(recipient) {
+ DCHECK(recipient_);
+}
+
+SyncChangeProcessorDelegator::~SyncChangeProcessorDelegator() {}
+
+syncer::SyncError SyncChangeProcessorDelegator::ProcessSyncChanges(
+ const tracked_objects::Location& from_here,
+ const syncer::SyncChangeList& change_list) {
+ return recipient_->ProcessSyncChanges(from_here, change_list);
+}
+
+syncer::SyncDataList SyncChangeProcessorDelegator::GetAllSyncData(
+ syncer::ModelType type) const {
+ return recipient_->GetAllSyncData(type);
+}
+
+} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698