12385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch// Copyright 2013 The Chromium Authors. All rights reserved.
22385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch// Use of this source code is governed by a BSD-style license that can be
32385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch// found in the LICENSE file.
42385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
52385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch#ifndef NET_QUIC_TEST_TOOLS_QUIC_RECEIVED_PACKET_MANAGER_PEER_H_
62385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch#define NET_QUIC_TEST_TOOLS_QUIC_RECEIVED_PACKET_MANAGER_PEER_H_
72385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
82385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch#include "net/quic/quic_protocol.h"
92385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
102385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdochnamespace net {
112385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
122385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdochclass QuicReceivedPacketManager;
132385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
142385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdochnamespace test {
152385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
162385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdochclass QuicReceivedPacketManagerPeer {
172385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch public:
18cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)  static void SetCumulativeEntropyUpTo(
192385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch      QuicReceivedPacketManager* received_packet_manager,
202385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch      QuicPacketSequenceNumber peer_least_unacked,
212385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch      QuicPacketEntropyHash entropy_hash);
222385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
232385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch  static bool DontWaitForPacketsBefore(
242385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch      QuicReceivedPacketManager* received_packet_manager,
252385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch      QuicPacketSequenceNumber least_unacked);
262385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
272385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch private:
282385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch  DISALLOW_COPY_AND_ASSIGN(QuicReceivedPacketManagerPeer);
292385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch};
302385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
312385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch}  // namespace test
322385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
332385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch}  // namespace net
342385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
352385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch#endif  // NET_QUIC_TEST_TOOLS_QUIC_RECEIVED_PACKET_MANAGER_PEER_H_
36