Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / net / quic / test_tools / quic_flow_controller_peer.h
blob3d7c9d00d306a62b261299119cdf76a102a235c2
1 // Copyright 2014 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_QUIC_FLOW_CONTROLLER_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_
8 #include "net/quic/quic_protocol.h"
10 namespace net {
12 class QuicFlowController;
14 namespace test {
16 class QuicFlowControllerPeer {
17 public:
18 static void SetSendWindowOffset(QuicFlowController* flow_controller,
19 QuicStreamOffset offset);
21 static void SetReceiveWindowOffset(QuicFlowController* flow_controller,
22 QuicStreamOffset offset);
24 static void SetMaxReceiveWindow(QuicFlowController* flow_controller,
25 QuicByteCount window_size);
27 static QuicStreamOffset SendWindowOffset(QuicFlowController* flow_controller);
29 static QuicByteCount SendWindowSize(QuicFlowController* flow_controller);
31 static QuicStreamOffset ReceiveWindowOffset(
32 QuicFlowController* flow_controller);
34 static QuicByteCount ReceiveWindowSize(QuicFlowController* flow_controller);
36 static QuicByteCount WindowUpdateThreshold(
37 QuicFlowController* flow_controller);
39 private:
40 DISALLOW_COPY_AND_ASSIGN(QuicFlowControllerPeer);
43 } // namespace test
44 } // namespace net
46 #endif // NET_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_