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

Unified Diff: sync/api/fake_model_type_change_processor.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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/entity_data_unittest.cc ('k') | sync/api/fake_model_type_change_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/fake_model_type_change_processor.h
diff --git a/sync/api/fake_model_type_change_processor.h b/sync/api/fake_model_type_change_processor.h
deleted file mode 100644
index 4bf59b6d33b0146c533c0a592d09079f8272003c..0000000000000000000000000000000000000000
--- a/sync/api/fake_model_type_change_processor.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2016 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.
-
-#ifndef SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_
-#define SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_
-
-#include <string>
-
-#include "sync/api/metadata_change_list.h"
-#include "sync/api/model_type_change_processor.h"
-#include "sync/internal_api/public/base/model_type.h"
-
-namespace syncer_v2 {
-
-class ModelTypeService;
-
-// A ModelTypeChangeProcessor implementation for tests.
-class FakeModelTypeChangeProcessor : public ModelTypeChangeProcessor {
- public:
- static std::unique_ptr<ModelTypeChangeProcessor> Create(
- syncer::ModelType type,
- ModelTypeService* service);
-
- FakeModelTypeChangeProcessor();
- ~FakeModelTypeChangeProcessor() override;
-
- // ModelTypeChangeProcessor overrides
- void Put(const std::string& client_tag,
- std::unique_ptr<EntityData> entity_data,
- MetadataChangeList* metadata_change_list) override;
- void Delete(const std::string& client_tag,
- MetadataChangeList* metadata_change_list) override;
- void OnMetadataLoaded(syncer::SyncError error,
- std::unique_ptr<MetadataBatch> batch) override;
- void OnSyncStarting(syncer::DataTypeErrorHandler* error_handler,
- const StartCallback& callback) override;
- void DisableSync() override;
- syncer::SyncError CreateAndUploadError(
- const tracked_objects::Location& location,
- const std::string& message) override;
-};
-
-} // namespace syncer_v2
-
-#endif // SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_
« no previous file with comments | « sync/api/entity_data_unittest.cc ('k') | sync/api/fake_model_type_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698