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

Unified Diff: sync/test/engine/mock_model_type_sync_worker.h

Issue 351523003: sync: Mass rename of non-blocking sync classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const ref some smart pointers Created 6 years, 6 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/test/engine/mock_model_type_sync_proxy.cc ('k') | sync/test/engine/mock_model_type_sync_worker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/engine/mock_model_type_sync_worker.h
diff --git a/sync/test/engine/mock_non_blocking_type_processor_core.h b/sync/test/engine/mock_model_type_sync_worker.h
similarity index 77%
rename from sync/test/engine/mock_non_blocking_type_processor_core.h
rename to sync/test/engine/mock_model_type_sync_worker.h
index 2ee73a4aa3b5a067b2381c50a115a30030050567..deb675e9b6d9eb8d0b727796ac9f8a457ee29a19 100644
--- a/sync/test/engine/mock_non_blocking_type_processor_core.h
+++ b/sync/test/engine/mock_model_type_sync_worker.h
@@ -2,30 +2,28 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SYNC_TEST_ENGINE_MOCK_NON_BLOCKING_TYPE_PROCESSOR_CORE_H_
-#define SYNC_TEST_ENGINE_MOCK_NON_BLOCKING_TYPE_PROCESSOR_CORE_H_
+#ifndef SYNC_TEST_ENGINE_MOCK_MODEL_TYPE_SYNC_WORKER_H_
+#define SYNC_TEST_ENGINE_MOCK_MODEL_TYPE_SYNC_WORKER_H_
#include <vector>
#include "base/macros.h"
+#include "sync/engine/model_type_sync_worker.h"
#include "sync/engine/non_blocking_sync_common.h"
-#include "sync/engine/non_blocking_type_processor_core_interface.h"
namespace syncer {
-// Receives and records commit requests sent through the
-// NonBlockingTypeProcessorCoreInterface.
+// Receives and records commit requests sent through the ModelTypeSyncWorker.
//
// This class also includes features intended to help mock out server behavior.
// It has some basic functionality to keep track of server state and generate
// plausible UpdateResponseData and CommitResponseData messages.
-class MockNonBlockingTypeProcessorCore
- : public NonBlockingTypeProcessorCoreInterface {
+class MockModelTypeSyncWorker : public ModelTypeSyncWorker {
public:
- MockNonBlockingTypeProcessorCore();
- virtual ~MockNonBlockingTypeProcessorCore();
+ MockModelTypeSyncWorker();
+ virtual ~MockModelTypeSyncWorker();
- // Implementation of NonBlockingTypeProcessorCoreInterface.
+ // Implementation of ModelTypeSyncWorker.
virtual void RequestCommits(const CommitRequestDataList& list) OVERRIDE;
// Getters to inspect the requests sent to this object.
@@ -36,7 +34,7 @@ class MockNonBlockingTypeProcessorCore
const std::string& tag_hash) const;
// Functions to produce state as though it came from a real server and had
- // been filtered through a real NonBlockinTypeProcessorCore.
+ // been filtered through a real ModelTypeSyncWorker.
// Returns an UpdateResponseData representing an update received from
// the server. Updates server state accordingly.
@@ -74,9 +72,9 @@ class MockNonBlockingTypeProcessorCore
// This is an essential part of the mocked server state.
std::map<const std::string, int64> server_versions_;
- DISALLOW_COPY_AND_ASSIGN(MockNonBlockingTypeProcessorCore);
+ DISALLOW_COPY_AND_ASSIGN(MockModelTypeSyncWorker);
};
} // namespace syncer
-#endif // SYNC_TEST_ENGINE_MOCK_NON_BLOCKING_TYPE_PROCESSOR_CORE_H_
+#endif // SYNC_TEST_ENGINE_MOCK_MODEL_TYPE_SYNC_WORKER_H_
« no previous file with comments | « sync/test/engine/mock_model_type_sync_proxy.cc ('k') | sync/test/engine/mock_model_type_sync_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698