blob: 631871ade25fbeb52149707d015235a94f438a67 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// 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 teama6ef0a62019-03-07 20:34:33 -05008#include "net/third_party/quiche/src/quic/core/quic_packets.h"
9
10namespace quic {
11
12class QuicFlowController;
13
14namespace test {
15
16class 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_