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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/fake_generic_change_processor.cc
diff --git a/components/sync_driver/fake_generic_change_processor.cc b/components/sync_driver/fake_generic_change_processor.cc
deleted file mode 100644
index 241d31f35d01239a6f1b1475ed461b941f4348bc..0000000000000000000000000000000000000000
--- a/components/sync_driver/fake_generic_change_processor.cc
+++ /dev/null
@@ -1,87 +0,0 @@
-// 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 "components/sync_driver/fake_generic_change_processor.h"
-
-#include <utility>
-
-#include "base/location.h"
-#include "base/memory/weak_ptr.h"
-#include "components/sync/api/syncable_service.h"
-#include "components/sync/core/attachments/attachment_service_impl.h"
-
-namespace sync_driver {
-
-FakeGenericChangeProcessor::FakeGenericChangeProcessor(
- syncer::ModelType type,
- SyncClient* sync_client)
- : GenericChangeProcessor(type,
- NULL,
- base::WeakPtr<syncer::SyncableService>(),
- base::WeakPtr<syncer::SyncMergeResult>(),
- NULL,
- sync_client,
- nullptr),
- sync_model_has_user_created_nodes_(true),
- sync_model_has_user_created_nodes_success_(true) {
-}
-
-FakeGenericChangeProcessor::~FakeGenericChangeProcessor() {}
-
-void FakeGenericChangeProcessor::set_sync_model_has_user_created_nodes(
- bool has_nodes) {
- sync_model_has_user_created_nodes_ = has_nodes;
-}
-void FakeGenericChangeProcessor::set_sync_model_has_user_created_nodes_success(
- bool success) {
- sync_model_has_user_created_nodes_success_ = success;
-}
-
-syncer::SyncError FakeGenericChangeProcessor::ProcessSyncChanges(
- const tracked_objects::Location& from_here,
- const syncer::SyncChangeList& change_list) {
- return syncer::SyncError();
-}
-
-syncer::SyncError FakeGenericChangeProcessor::GetAllSyncDataReturnError(
- syncer::SyncDataList* current_sync_data) const {
- return syncer::SyncError();
-}
-
-bool FakeGenericChangeProcessor::GetDataTypeContext(
- std::string* context) const {
- return false;
-}
-
-int FakeGenericChangeProcessor::GetSyncCount() {
- return 0;
-}
-
-bool FakeGenericChangeProcessor::SyncModelHasUserCreatedNodes(bool* has_nodes) {
- *has_nodes = sync_model_has_user_created_nodes_;
- return sync_model_has_user_created_nodes_success_;
-}
-
-bool FakeGenericChangeProcessor::CryptoReadyIfNecessary() {
- return true;
-}
-
-FakeGenericChangeProcessorFactory::FakeGenericChangeProcessorFactory(
- std::unique_ptr<FakeGenericChangeProcessor> processor)
- : processor_(std::move(processor)) {}
-
-FakeGenericChangeProcessorFactory::~FakeGenericChangeProcessorFactory() {}
-
-std::unique_ptr<GenericChangeProcessor>
-FakeGenericChangeProcessorFactory::CreateGenericChangeProcessor(
- syncer::ModelType type,
- syncer::UserShare* user_share,
- syncer::DataTypeErrorHandler* error_handler,
- const base::WeakPtr<syncer::SyncableService>& local_service,
- const base::WeakPtr<syncer::SyncMergeResult>& merge_result,
- SyncClient* sync_client) {
- return std::move(processor_);
-}
-
-} // namespace sync_driver
« 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