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

Unified Diff: sync/test/engine/injectable_sync_context_proxy.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/sync_tests.gypi ('k') | sync/test/engine/injectable_sync_context_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/engine/injectable_sync_context_proxy.h
diff --git a/sync/test/engine/injectable_sync_context_proxy.h b/sync/test/engine/injectable_sync_context_proxy.h
index b0ff6f6985e9353605c06d99021d66985721683f..ca8bc02e8a4464a39e9814cbd50679bd19af2410 100644
--- a/sync/test/engine/injectable_sync_context_proxy.h
+++ b/sync/test/engine/injectable_sync_context_proxy.h
@@ -12,13 +12,13 @@
namespace syncer_v2 {
class ModelTypeSyncProxyImpl;
-class ModelTypeSyncWorker;
+class CommitQueue;
// A SyncContextProxy implementation that, when a connection request is made,
// initalizes a connection to a previously injected ModelTypeSyncProxyImpl.
class InjectableSyncContextProxy : public SyncContextProxy {
public:
- explicit InjectableSyncContextProxy(ModelTypeSyncWorker* worker);
+ explicit InjectableSyncContextProxy(CommitQueue* queue);
~InjectableSyncContextProxy() override;
void ConnectTypeToSync(
@@ -29,18 +29,18 @@ class InjectableSyncContextProxy : public SyncContextProxy {
void Disconnect(syncer::ModelType type) override;
scoped_ptr<SyncContextProxy> Clone() const override;
- ModelTypeSyncWorker* GetWorker();
+ CommitQueue* GetQueue();
private:
// A flag to ensure ConnectTypeToSync is called at most once.
bool is_worker_connected_;
- // The ModelTypeSyncProxy's contract expects that it gets to own this object,
+ // The ModelTypeProcessor's contract expects that it gets to own this object,
// so we can retain only a non-owned pointer to it.
//
// This is very unsafe, but we can get away with it since these tests are not
// exercising the proxy <-> worker connection code.
- ModelTypeSyncWorker* worker_;
+ CommitQueue* queue_;
};
} // namespace syncer
« no previous file with comments | « sync/sync_tests.gypi ('k') | sync/test/engine/injectable_sync_context_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698