xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/test_tools/quic_flow_controller_peer.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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 
8 #include "quiche/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_
46