QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // 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 team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 8 | #include "net/third_party/quiche/src/quic/core/quic_packets.h" |
| 9 | |
| 10 | namespace quic { |
| 11 | |
| 12 | class QuicStreamSequencer; |
| 13 | |
| 14 | namespace test { |
| 15 | |
| 16 | class 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_ |