resetForTesting static method

  1. @visibleForTesting
void resetForTesting()

Test-only reset.

Implementation

@visibleForTesting
static void resetForTesting() {
  clear();
  _paused = false;
  _cap = 500;
  // The HTTP-adapter registry is a singleton list owned by
  // `internal/http_adapter_registry.dart`; clearing it here keeps test
  // isolation aligned with the existing buffer reset.
  httpAdapterRegistry.clear();
}