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

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

Issue 335533002: API changes to Write path Session on down for FEC protection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "net/quic/test_tools/quic_packet_generator_peer.h"
6
7 #include "net/quic/quic_packet_creator.h"
8 #include "net/quic/quic_packet_generator.h"
9
10 namespace net {
11 namespace test {
12
13 // static
14 void QuicPacketGeneratorPeer::MaybeStartFecProtection(
15 QuicPacketGenerator* generator) {
16 generator->MaybeStartFecProtection();
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 }
32
33 } // namespace test
34 } // 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