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

Unified Diff: sync/api/sync_change_processor_wrapper_for_test.cc

Issue 151963002: Remove duplicated code from sync related unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed a const qualifier. Created 6 years, 10 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
« no previous file with comments | « sync/api/sync_change_processor_wrapper_for_test.h ('k') | sync/sync_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/sync_change_processor_wrapper_for_test.cc
diff --git a/sync/api/sync_change_processor_wrapper_for_test.cc b/sync/api/sync_change_processor_wrapper_for_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..638c63938fc40ef7ed1b86a0d136344f7dbe8f46
--- /dev/null
+++ b/sync/api/sync_change_processor_wrapper_for_test.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_wrapper_for_test.h"
+
+namespace syncer {
+
+SyncChangeProcessorWrapperForTest::SyncChangeProcessorWrapperForTest(
+ syncer::SyncChangeProcessor* wrapped)
+ : wrapped_(wrapped) {
+ DCHECK(wrapped_);
+}
+
+SyncChangeProcessorWrapperForTest::~SyncChangeProcessorWrapperForTest() {}
+
+syncer::SyncError SyncChangeProcessorWrapperForTest::ProcessSyncChanges(
+ const tracked_objects::Location& from_here,
+ const syncer::SyncChangeList& change_list) {
+ return wrapped_->ProcessSyncChanges(from_here, change_list);
+}
+
+syncer::SyncDataList SyncChangeProcessorWrapperForTest::GetAllSyncData(
+ syncer::ModelType type) const {
+ return wrapped_->GetAllSyncData(type);
+}
+
+} // namespace syncer
« no previous file with comments | « sync/api/sync_change_processor_wrapper_for_test.h ('k') | sync/sync_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698