blob: f61cb0049a5dce537cd62fc6cd1400169adca616 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// 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
10namespace quic {
11
12namespace test {
13
14class 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_