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

Unified Diff: components/sync/driver/fake_generic_change_processor.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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: components/sync/driver/fake_generic_change_processor.h
diff --git a/components/sync/driver/fake_generic_change_processor.h b/components/sync/driver/fake_generic_change_processor.h
index 931077a3d881a4d4f1e115ea8a9ffd7d6266b4c1..d8bf13e41742c4413aeaf5d402404ac4300ccc84 100644
--- a/components/sync/driver/fake_generic_change_processor.h
+++ b/components/sync/driver/fake_generic_change_processor.h
@@ -15,12 +15,12 @@
#include "components/sync/driver/generic_change_processor_factory.h"
#include "components/sync/driver/sync_api_component_factory.h"
-namespace syncer {
+namespace sync_driver {
// A fake GenericChangeProcessor that can return arbitrary values.
class FakeGenericChangeProcessor : public GenericChangeProcessor {
public:
- FakeGenericChangeProcessor(ModelType type, SyncClient* sync_client);
+ FakeGenericChangeProcessor(syncer::ModelType type, SyncClient* sync_client);
~FakeGenericChangeProcessor() override;
// Setters for GenericChangeProcessor implementation results.
@@ -28,9 +28,11 @@ class FakeGenericChangeProcessor : public GenericChangeProcessor {
void set_sync_model_has_user_created_nodes_success(bool success);
// GenericChangeProcessor implementations.
- SyncError ProcessSyncChanges(const tracked_objects::Location& from_here,
- const SyncChangeList& change_list) override;
- SyncError GetAllSyncDataReturnError(SyncDataList* data) const override;
+ syncer::SyncError ProcessSyncChanges(
+ const tracked_objects::Location& from_here,
+ const syncer::SyncChangeList& change_list) override;
+ syncer::SyncError GetAllSyncDataReturnError(
+ syncer::SyncDataList* data) const override;
bool GetDataTypeContext(std::string* context) const override;
int GetSyncCount() override;
bool SyncModelHasUserCreatedNodes(bool* has_nodes) override;
@@ -48,11 +50,11 @@ class FakeGenericChangeProcessorFactory : public GenericChangeProcessorFactory {
std::unique_ptr<FakeGenericChangeProcessor> processor);
~FakeGenericChangeProcessorFactory() override;
std::unique_ptr<GenericChangeProcessor> CreateGenericChangeProcessor(
- ModelType type,
- UserShare* user_share,
- std::unique_ptr<DataTypeErrorHandler> error_handler,
- const base::WeakPtr<SyncableService>& local_service,
- const base::WeakPtr<SyncMergeResult>& merge_result,
+ syncer::ModelType type,
+ syncer::UserShare* user_share,
+ std::unique_ptr<syncer::DataTypeErrorHandler> error_handler,
+ const base::WeakPtr<syncer::SyncableService>& local_service,
+ const base::WeakPtr<syncer::SyncMergeResult>& merge_result,
SyncClient* sync_client) override;
private:
@@ -60,6 +62,6 @@ class FakeGenericChangeProcessorFactory : public GenericChangeProcessorFactory {
DISALLOW_COPY_AND_ASSIGN(FakeGenericChangeProcessorFactory);
};
-} // namespace syncer
+} // namespace sync_driver
#endif // COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_
« no previous file with comments | « components/sync/driver/fake_data_type_controller.cc ('k') | components/sync/driver/fake_generic_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698