diff options
Diffstat (limited to 'chromium/net/third_party/quiche/src/quiche/quic/test_tools/web_transport_resets_backend.h')
-rw-r--r-- | chromium/net/third_party/quiche/src/quiche/quic/test_tools/web_transport_resets_backend.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/chromium/net/third_party/quiche/src/quiche/quic/test_tools/web_transport_resets_backend.h b/chromium/net/third_party/quiche/src/quiche/quic/test_tools/web_transport_resets_backend.h new file mode 100644 index 00000000000..d3b490c2beb --- /dev/null +++ b/chromium/net/third_party/quiche/src/quiche/quic/test_tools/web_transport_resets_backend.h @@ -0,0 +1,23 @@ +// Copyright (c) 2021 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef QUICHE_QUIC_TEST_TOOLS_WEB_TRANSPORT_RESETS_BACKEND_H_ +#define QUICHE_QUIC_TEST_TOOLS_WEB_TRANSPORT_RESETS_BACKEND_H_ + +#include "quiche/quic/test_tools/quic_test_backend.h" + +namespace quic { +namespace test { + +// A backend for testing RESET_STREAM/STOP_SENDING behavior. Provides +// bidirectional echo streams; whenever one of those receives RESET_STREAM or +// STOP_SENDING, a log message is sent as a unidirectional stream. +QuicSimpleServerBackend::WebTransportResponse WebTransportResetsBackend( + const spdy::Http2HeaderBlock& request_headers, + WebTransportSession* session); + +} // namespace test +} // namespace quic + +#endif // QUICHE_QUIC_TEST_TOOLS_WEB_TRANSPORT_RESETS_BACKEND_H_ |