blob: 7c84001512af63088c0610ca9c8bbeaf2865ad73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/quic/test_tools/quic_config_peer.h"
#include "net/quic/quic_config.h"
namespace net {
namespace test {
// static
void QuicConfigPeer::SetReceivedInitialWindow(QuicConfig* config,
size_t initial_window) {
config->initial_congestion_window_.SetReceivedValue(initial_window);
}
// static
void QuicConfigPeer::SetReceivedSocketReceiveBuffer(
QuicConfig* config,
uint32 receive_buffer_bytes) {
config->socket_receive_buffer_.SetReceivedValue(receive_buffer_bytes);
}
// static
void QuicConfigPeer::SetReceivedInitialFlowControlWindow(QuicConfig* config,
uint32 window_bytes) {
config->initial_flow_control_window_bytes_.SetReceivedValue(window_bytes);
}
// static
void QuicConfigPeer::SetReceivedInitialStreamFlowControlWindow(
QuicConfig* config,
uint32 window_bytes) {
config->initial_stream_flow_control_window_bytes_.SetReceivedValue(
window_bytes);
}
// static
void QuicConfigPeer::SetReceivedInitialSessionFlowControlWindow(
QuicConfig* config,
uint32 window_bytes) {
config->initial_session_flow_control_window_bytes_.SetReceivedValue(
window_bytes);
}
// static
void QuicConfigPeer::SetReceivedConnectionOptions(
QuicConfig* config,
const QuicTagVector& options) {
config->connection_options_.SetReceivedValues(options);
}
// static
void QuicConfigPeer::SetReceivedBytesForConnectionId(QuicConfig* config,
uint32 bytes) {
config->bytes_for_connection_id_.SetReceivedValue(bytes);
}
} // namespace test
} // namespace net
|