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

Unified Diff: components/sync/test/engine/single_type_mock_server.h

Issue 2401083003: [Sync] Adding integration tests for USS encryption and fixing a worker bug. (Closed)
Patch Set: Updated for rkaplow@'s comments. 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/test/engine/single_type_mock_server.h
diff --git a/components/sync/test/engine/single_type_mock_server.h b/components/sync/test/engine/single_type_mock_server.h
index 6ed5ba4f2e6351dd11fe5a65196019be5ff1b2a4..72742fc94b181c7d362d3fb1631fe072e12f2c0b 100644
--- a/components/sync/test/engine/single_type_mock_server.h
+++ b/components/sync/test/engine/single_type_mock_server.h
@@ -74,6 +74,9 @@ class SingleTypeMockServer {
sync_pb::DataTypeProgressMarker GetProgress() const;
sync_pb::DataTypeContext GetContext() const;
+ // Sets the token that will be returned as part of GetProgress().
+ void SetProgressMarkerToken(const std::string& token);
+
private:
static std::string GenerateId(const std::string& tag_hash);
@@ -93,6 +96,9 @@ class SingleTypeMockServer {
// Map of most recent commits by tag_hash.
std::map<const std::string, sync_pb::SyncEntity> committed_items_;
+ // The token that is used to generate the current progress marker.
+ std::string progress_marker_token_;
+
DISALLOW_COPY_AND_ASSIGN(SingleTypeMockServer);
};
« no previous file with comments | « components/sync/engine_impl/model_type_worker_unittest.cc ('k') | components/sync/test/engine/single_type_mock_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698