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); |
}; |