QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // Copyright 2017 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_SEND_BUFFER_PEER_H_ |
| 6 | #define QUICHE_QUIC_TEST_TOOLS_QUIC_STREAM_SEND_BUFFER_PEER_H_ |
| 7 | |
| 8 | #include "net/third_party/quiche/src/quic/core/quic_stream_send_buffer.h" |
| 9 | |
| 10 | namespace quic { |
| 11 | |
| 12 | namespace test { |
| 13 | |
| 14 | class QuicStreamSendBufferPeer { |
| 15 | public: |
| 16 | static void SetStreamOffset(QuicStreamSendBuffer* send_buffer, |
| 17 | QuicStreamOffset stream_offset); |
| 18 | |
| 19 | static const BufferedSlice* CurrentWriteSlice( |
| 20 | QuicStreamSendBuffer* send_buffer); |
| 21 | |
| 22 | static QuicByteCount TotalLength(QuicStreamSendBuffer* send_buffer); |
| 23 | }; |
| 24 | |
| 25 | } // namespace test |
| 26 | |
| 27 | } // namespace quic |
| 28 | |
| 29 | #endif // QUICHE_QUIC_TEST_TOOLS_QUIC_STREAM_SEND_BUFFER_PEER_H_ |