OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_ | |
6 #define NET_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_ | |
7 | |
8 #include "net/quic/quic_protocol.h" | |
9 | |
10 namespace net { | |
11 | |
12 class QuicFlowController; | |
13 | |
14 namespace test { | |
15 | |
16 class QuicFlowControllerPeer { | |
17 public: | |
18 static void SetSendWindowOffset(QuicFlowController* flow_controller, | |
19 QuicStreamOffset offset); | |
20 | |
21 static void SetReceiveWindowOffset(QuicFlowController* flow_controller, | |
22 QuicStreamOffset offset); | |
23 | |
24 static void SetMaxReceiveWindow(QuicFlowController* flow_controller, | |
25 QuicByteCount window_size); | |
26 | |
27 static QuicStreamOffset SendWindowOffset(QuicFlowController* flow_controller); | |
28 | |
29 static QuicByteCount SendWindowSize(QuicFlowController* flow_controller); | |
30 | |
31 static QuicStreamOffset ReceiveWindowOffset( | |
32 QuicFlowController* flow_controller); | |
33 | |
34 static QuicByteCount ReceiveWindowSize(QuicFlowController* flow_controller); | |
35 | |
36 private: | |
37 DISALLOW_COPY_AND_ASSIGN(QuicFlowControllerPeer); | |
38 }; | |
39 | |
40 } // namespace test | |
41 } // namespace net | |
42 | |
43 #endif // NET_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_ | |
OLD | NEW |