QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 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 QUICHE_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_ |
| 6 | #define QUICHE_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_ |
| 7 | |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 8 | #include "net/third_party/quiche/src/quic/core/quic_packets.h" |
| 9 | |
| 10 | namespace quic { |
| 11 | |
| 12 | class QuicFlowController; |
| 13 | |
| 14 | namespace test { |
| 15 | |
| 16 | class QuicFlowControllerPeer { |
| 17 | public: |
| 18 | QuicFlowControllerPeer() = delete; |
| 19 | |
| 20 | static void SetSendWindowOffset(QuicFlowController* flow_controller, |
| 21 | QuicStreamOffset offset); |
| 22 | |
| 23 | static void SetReceiveWindowOffset(QuicFlowController* flow_controller, |
| 24 | QuicStreamOffset offset); |
| 25 | |
| 26 | static void SetMaxReceiveWindow(QuicFlowController* flow_controller, |
| 27 | QuicByteCount window_size); |
| 28 | |
| 29 | static QuicStreamOffset SendWindowOffset(QuicFlowController* flow_controller); |
| 30 | |
| 31 | static QuicByteCount SendWindowSize(QuicFlowController* flow_controller); |
| 32 | |
| 33 | static QuicStreamOffset ReceiveWindowOffset( |
| 34 | QuicFlowController* flow_controller); |
| 35 | |
| 36 | static QuicByteCount ReceiveWindowSize(QuicFlowController* flow_controller); |
| 37 | |
| 38 | static QuicByteCount WindowUpdateThreshold( |
| 39 | QuicFlowController* flow_controller); |
| 40 | }; |
| 41 | |
| 42 | } // namespace test |
| 43 | } // namespace quic |
| 44 | |
| 45 | #endif // QUICHE_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_ |