| OLD | NEW |
| (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 | |
| OLD | NEW |