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

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

Issue 1325453003: [Sync] rename USS processor / worker interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update base on comments Created 5 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 | « sync/test/engine/mock_commit_queue.cc ('k') | sync/test/engine/mock_model_type_processor.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_processor.h
diff --git a/sync/test/engine/mock_model_type_sync_proxy.h b/sync/test/engine/mock_model_type_processor.h
similarity index 90%
rename from sync/test/engine/mock_model_type_sync_proxy.h
rename to sync/test/engine/mock_model_type_processor.h
index d4a4036c3502e5a2445d4814465e70c6cb654f76..d1de151620fa060b8d38bc26d5ea4554b4f61c94 100644
--- a/sync/test/engine/mock_model_type_sync_proxy.h
+++ b/sync/test/engine/mock_model_type_processor.h
@@ -2,19 +2,19 @@
// 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_MODEL_TYPE_SYNC_PROXY_H_
-#define SYNC_TEST_ENGINE_MOCK_MODEL_TYPE_SYNC_PROXY_H_
+#ifndef SYNC_TEST_ENGINE_MOCK_MODEL_TYPE_PROCESSOR_H_
+#define SYNC_TEST_ENGINE_MOCK_MODEL_TYPE_PROCESSOR_H_
#include <vector>
#include "base/callback.h"
#include "base/macros.h"
-#include "sync/engine/model_type_sync_proxy.h"
+#include "sync/engine/model_type_processor.h"
#include "sync/internal_api/public/non_blocking_sync_common.h"
namespace syncer_v2 {
-// Mocks the ModelTypeSyncProxy.
+// Mocks the ModelTypeProcessor.
//
// This mock is made simpler by not using any threads. It does still have the
// ability to defer execution if we need to test race conditions, though.
@@ -25,12 +25,12 @@ namespace syncer_v2 {
//
// It keeps a log of all received messages so tests can make assertions based
// on their value.
-class MockModelTypeSyncProxy : public ModelTypeSyncProxy {
+class MockModelTypeProcessor : public ModelTypeProcessor {
public:
- MockModelTypeSyncProxy();
- ~MockModelTypeSyncProxy() override;
+ MockModelTypeProcessor();
+ ~MockModelTypeProcessor() override;
- // Implementation of ModelTypeSyncProxy.
+ // Implementation of ModelTypeProcessor.
void OnCommitCompleted(const DataTypeState& type_state,
const CommitResponseDataList& response_list) override;
void OnUpdateReceived(const DataTypeState& type_state,
@@ -51,8 +51,8 @@ class MockModelTypeSyncProxy : public ModelTypeSyncProxy {
// Generate commit or deletion requests to be sent to the server.
// These functions update local state to keep sequence numbers consistent.
//
- // A real ModelTypeSyncProxy would forward these kinds of messages
- // directly to its attached ModelTypeSyncWorker. These methods
+ // A real ModelTypeProcessor would forward these kinds of messages
+ // directly to its attached CommitQueue. These methods
// return the value to the caller so the test framework can handle them as it
// sees fit.
CommitRequestData CommitRequest(const std::string& tag_hash,
@@ -130,9 +130,9 @@ class MockModelTypeSyncProxy : public ModelTypeSyncProxy {
std::map<const std::string, int64> base_versions_;
std::map<const std::string, std::string> assigned_ids_;
- DISALLOW_COPY_AND_ASSIGN(MockModelTypeSyncProxy);
+ DISALLOW_COPY_AND_ASSIGN(MockModelTypeProcessor);
};
} // namespace syncer
-#endif // SYNC_TEST_ENGINE_MOCK_MODEL_TYPE_SYNC_PROXY_H_
+#endif // SYNC_TEST_ENGINE_MOCK_MODEL_TYPE_PROCESSOR_H_
« no previous file with comments | « sync/test/engine/mock_commit_queue.cc ('k') | sync/test/engine/mock_model_type_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698