Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / net / quic / test_tools / quic_received_packet_manager_peer.cc
blobe6d1a3eb4387d45502218ee3f9e96625b7a8aa3f
1 // Copyright 2013 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_received_packet_manager_peer.h"
7 #include "net/quic/quic_protocol.h"
8 #include "net/quic/quic_received_packet_manager.h"
10 namespace net {
11 namespace test {
13 // static
14 void QuicReceivedPacketManagerPeer::SetCumulativeEntropyUpTo(
15 QuicReceivedPacketManager* received_packet_manager,
16 QuicPacketNumber peer_least_unacked,
17 QuicPacketEntropyHash entropy_hash) {
18 received_packet_manager->entropy_tracker_.SetCumulativeEntropyUpTo(
19 peer_least_unacked, entropy_hash);
22 // static
23 bool QuicReceivedPacketManagerPeer::DontWaitForPacketsBefore(
24 QuicReceivedPacketManager* received_packet_manager,
25 QuicPacketNumber least_unacked) {
26 return received_packet_manager->DontWaitForPacketsBefore(least_unacked);
29 } // namespace test
30 } // namespace net