Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: net/quic/test_tools/quic_packet_generator_peer.cc

Issue 331573002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compiler error - use push_back to initialize vectors Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/test_tools/quic_packet_generator_peer.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/test_tools/quic_packet_generator_peer.h" 5 #include "net/quic/test_tools/quic_packet_generator_peer.h"
6 6
7 #include "net/quic/quic_packet_creator.h" 7 #include "net/quic/quic_packet_creator.h"
8 #include "net/quic/quic_packet_generator.h" 8 #include "net/quic/quic_packet_generator.h"
9 9
10 namespace net { 10 namespace net {
11 namespace test { 11 namespace test {
12 12
13 // static 13 // static
14 void QuicPacketGeneratorPeer::MaybeStartFecProtection( 14 QuicPacketCreator* QuicPacketGeneratorPeer::GetPacketCreator(
15 QuicPacketGenerator* generator) { 15 QuicPacketGenerator* generator) {
16 generator->MaybeStartFecProtection(); 16 return &generator->packet_creator_;
17 }
18
19 // static
20 void QuicPacketGeneratorPeer::MaybeStopFecProtection(
21 QuicPacketGenerator* generator, bool force) {
22 generator->MaybeStopFecProtection(force);
23 }
24
25 // static
26 void QuicPacketGeneratorPeer::SwitchFecProtectionOn(
27 QuicPacketGenerator* generator, size_t max_packets_per_fec_group) {
28 generator->packet_creator_->set_max_packets_per_fec_group(
29 max_packets_per_fec_group);
30 generator->MaybeStartFecProtection();
31 } 17 }
32 18
33 } // namespace test 19 } // namespace test
34 } // namespace net 20 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_packet_generator_peer.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698