blob: d358995bc0e5a96d187eebdfc0b35a3a7fdbb572 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// Copyright 2014 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_STREAM_SEQUENCER_PEER_H_
6#define QUICHE_QUIC_TEST_TOOLS_QUIC_STREAM_SEQUENCER_PEER_H_
7
QUICHE teama6ef0a62019-03-07 20:34:33 -05008#include "net/third_party/quiche/src/quic/core/quic_packets.h"
9
10namespace quic {
11
12class QuicStreamSequencer;
13
14namespace test {
15
16class QuicStreamSequencerPeer {
17 public:
18 QuicStreamSequencerPeer() = delete;
19
20 static size_t GetNumBufferedBytes(QuicStreamSequencer* sequencer);
21
22 static QuicStreamOffset GetCloseOffset(QuicStreamSequencer* sequencer);
23
24 static bool IsUnderlyingBufferAllocated(QuicStreamSequencer* sequencer);
25
26 static void SetFrameBufferTotalBytesRead(QuicStreamSequencer* sequencer,
27 QuicStreamOffset total_bytes_read);
28};
29
30} // namespace test
31} // namespace quic
32
33#endif // QUICHE_QUIC_TEST_TOOLS_QUIC_STREAM_SEQUENCER_PEER_H_