Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / net / quic / test_tools / quic_config_peer.cc
blob1d1d6d1451f0f9d709a89a5551bc8c62557e327a
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.
5 #include "net/quic/test_tools/quic_config_peer.h"
7 #include "net/quic/quic_config.h"
9 namespace net {
10 namespace test {
12 // static
13 void QuicConfigPeer::SetReceivedInitialWindow(QuicConfig* config,
14 size_t initial_window) {
15 config->initial_congestion_window_.SetReceivedValue(initial_window);
18 // static
19 void QuicConfigPeer::SetReceivedLossDetection(QuicConfig* config,
20 QuicTag loss_detection) {
21 config->loss_detection_.SetReceivedValue(loss_detection);
24 // static
25 void QuicConfigPeer::SetReceivedInitialFlowControlWindow(QuicConfig* config,
26 uint32 window_bytes) {
27 config->initial_flow_control_window_bytes_.SetReceivedValue(window_bytes);
30 // static
31 void QuicConfigPeer::SetReceivedInitialStreamFlowControlWindow(
32 QuicConfig* config,
33 uint32 window_bytes) {
34 config->initial_stream_flow_control_window_bytes_.SetReceivedValue(
35 window_bytes);
38 // static
39 void QuicConfigPeer::SetReceivedInitialSessionFlowControlWindow(
40 QuicConfig* config,
41 uint32 window_bytes) {
42 config->initial_session_flow_control_window_bytes_.SetReceivedValue(
43 window_bytes);
46 // static
47 void QuicConfigPeer::SetReceivedConnectionOptions(
48 QuicConfig* config,
49 const QuicTagVector& options) {
50 config->connection_options_.SetReceivedValues(options);
53 } // namespace test
54 } // namespace net