forceSetCrdtHlc method

void forceSetCrdtHlc(
  1. String documentId,
  2. String hlc
)

Test helper: forcibly sets crdtHlc on a document without going through the full updateDocumentData path. Useful when that method is overridden in a subclass (e.g. _HangingDataSource) to simulate in-flight requests.

Implementation

void forceSetCrdtHlc(String documentId, String hlc) {
  final doc = _documents[documentId];
  if (doc != null) {
    _documents[documentId] = doc.copyWith(crdtHlc: hlc);
  }
}