Land Recent QUIC Changes.
[chromium-blink-merge.git] / net / quic / test_tools / reliable_quic_stream_peer.h
blob8fffbbeaa878c6662c96655f259504efaffe144a
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.
5 #ifndef NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_
8 #include "base/basictypes.h"
9 #include "net/quic/quic_protocol.h"
11 namespace net {
13 class ReliableQuicStream;
15 namespace test {
17 class 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);
24 static bool FinSent(ReliableQuicStream* stream);
25 static bool RstSent(ReliableQuicStream* stream);
27 static uint32 SizeOfQueuedData(ReliableQuicStream* stream);
29 static void SetFecPolicy(ReliableQuicStream* stream, FecPolicy fec_policy);
31 static bool StreamContributesToConnectionFlowControl(
32 ReliableQuicStream* stream);
34 private:
35 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStreamPeer);
38 } // namespace test
39 } // namespace net
41 #endif // NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_