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

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

Issue 326403006: Enables PacketGenerator's use of PacketCreator's FEC primitives. (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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_creator_peer.h" 5 #include "net/quic/test_tools/quic_packet_creator_peer.h"
6 6
7 #include "net/quic/quic_packet_creator.h" 7 #include "net/quic/quic_packet_creator.h"
8 8
9 namespace net { 9 namespace net {
10 namespace test { 10 namespace test {
(...skipping 21 matching lines...) Expand all
32 QuicPacketCreator* creator) { 32 QuicPacketCreator* creator) {
33 return creator->sequence_number_length_; 33 return creator->sequence_number_length_;
34 } 34 }
35 35
36 // static 36 // static
37 void QuicPacketCreatorPeer::SetIsServer(QuicPacketCreator* creator, 37 void QuicPacketCreatorPeer::SetIsServer(QuicPacketCreator* creator,
38 bool is_server) { 38 bool is_server) {
39 creator->is_server_ = is_server; 39 creator->is_server_ = is_server;
40 } 40 }
41 41
42 // static
43 bool QuicPacketCreatorPeer::SwitchFecProtectionOn(
44 QuicPacketCreator* creator, size_t max_packets_per_fec_group) {
45 creator->set_max_packets_per_fec_group(max_packets_per_fec_group);
46 creator->StartFecProtectingPackets();
47 return creator->IsFecProtected();
48 }
49
50 } // namespace test 42 } // namespace test
51 } // namespace net 43 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_packet_creator_peer.h ('k') | net/quic/test_tools/quic_packet_generator_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698