reliable_quic_stream_peer.h revision 5d1f7b1de12d16ceb2c938c56701a3e8bfa558f7
1// Copyright (c) 2012 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 NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_
6#define NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_
7
8#include "base/basictypes.h"
9#include "net/quic/quic_protocol.h"
10
11namespace net {
12
13class ReliableQuicStream;
14
15namespace test {
16
17class ReliableQuicStreamPeer {
18 public:
19  static void SetWriteSideClosed(bool value, ReliableQuicStream* stream);
20  static void SetStreamBytesWritten(QuicStreamOffset stream_bytes_written,
21                                    ReliableQuicStream* stream);
22  static void CloseReadSide(ReliableQuicStream* stream);
23
24  static bool FinSent(ReliableQuicStream* stream);
25  static bool RstSent(ReliableQuicStream* stream);
26
27 private:
28  DISALLOW_COPY_AND_ASSIGN(ReliableQuicStreamPeer);
29};
30
31}  // namespace test
32}  // namespace net
33
34#endif  // NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_
35