blob: 67ef05422b11504007e747e0c8674abe1a87a082 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_THIRD_PARTY_QUIC_TEST_TOOLS_QUIC_STREAM_SEQUENCER_PEER_H_
#define NET_THIRD_PARTY_QUIC_TEST_TOOLS_QUIC_STREAM_SEQUENCER_PEER_H_
#include "base/macros.h"
#include "net/third_party/quic/core/quic_packets.h"
namespace quic {
class QuicStreamSequencer;
namespace test {
class QuicStreamSequencerPeer {
public:
QuicStreamSequencerPeer() = delete;
static size_t GetNumBufferedBytes(QuicStreamSequencer* sequencer);
static QuicStreamOffset GetCloseOffset(QuicStreamSequencer* sequencer);
static bool IsUnderlyingBufferAllocated(QuicStreamSequencer* sequencer);
static void SetFrameBufferTotalBytesRead(QuicStreamSequencer* sequencer,
QuicStreamOffset total_bytes_read);
};
} // namespace test
} // namespace quic
#endif // NET_THIRD_PARTY_QUIC_TEST_TOOLS_QUIC_STREAM_SEQUENCER_PEER_H_