xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/test_tools/quic_spdy_stream_peer.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright (c) 2019 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_QUIC_SPDY_STREAM_PEER_H_
6 #define QUICHE_QUIC_TEST_TOOLS_QUIC_SPDY_STREAM_PEER_H_
7 
8 #include "quiche/quic/core/quic_ack_listener_interface.h"
9 #include "quiche/quic/core/quic_interval_set.h"
10 
11 namespace quic {
12 
13 class QpackDecodedHeadersAccumulator;
14 class QuicSpdyStream;
15 
16 namespace test {
17 
18 class QuicSpdyStreamPeer {
19  public:
20   static void set_ack_listener(
21       QuicSpdyStream* stream,
22       quiche::QuicheReferenceCountedPointer<QuicAckListenerInterface>
23           ack_listener);
24   static const QuicIntervalSet<QuicStreamOffset>& unacked_frame_headers_offsets(
25       QuicSpdyStream* stream);
26   static bool OnHeadersFrameEnd(QuicSpdyStream* stream);
27 };
28 
29 }  // namespace test
30 
31 }  // namespace quic
32 
33 #endif  // QUICHE_QUIC_TEST_TOOLS_QUIC_SPDY_STREAM_PEER_H_
34