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 8 #include "quiche/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_ 34