1 // Copyright (c) 2021 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef QUICHE_QUIC_TEST_TOOLS_WEB_TRANSPORT_RESETS_BACKEND_H_ 6 #define QUICHE_QUIC_TEST_TOOLS_WEB_TRANSPORT_RESETS_BACKEND_H_ 7 8 #include "quiche/quic/test_tools/quic_test_backend.h" 9 #include "quiche/spdy/core/http2_header_block.h" 10 11 namespace quic { 12 namespace test { 13 14 // A backend for testing RESET_STREAM/STOP_SENDING behavior. Provides 15 // bidirectional echo streams; whenever one of those receives RESET_STREAM or 16 // STOP_SENDING, a log message is sent as a unidirectional stream. 17 QuicSimpleServerBackend::WebTransportResponse WebTransportResetsBackend( 18 const spdy::Http2HeaderBlock& request_headers, 19 WebTransportSession* session); 20 21 } // namespace test 22 } // namespace quic 23 24 #endif // QUICHE_QUIC_TEST_TOOLS_WEB_TRANSPORT_RESETS_BACKEND_H_ 25