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

Side by Side Diff: net/quic/test_tools/quic_sent_packet_manager_peer.h

Issue 126983002: QUIC Cleanup to remove pending_packets from QuicSentPacketManager and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 2013 The Chromium Authors. All rights reserved. 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 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 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ 6 #define NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_
7 7
8 #include "net/quic/quic_protocol.h" 8 #include "net/quic/quic_protocol.h"
9 #include "net/quic/quic_sent_packet_manager.h" 9 #include "net/quic/quic_sent_packet_manager.h"
10 10
(...skipping 11 matching lines...) Expand all
22 static void SetSendAlgorithm(QuicSentPacketManager* sent_packet_manager, 22 static void SetSendAlgorithm(QuicSentPacketManager* sent_packet_manager,
23 SendAlgorithmInterface* send_algorithm); 23 SendAlgorithmInterface* send_algorithm);
24 24
25 static size_t GetNackCount( 25 static size_t GetNackCount(
26 const QuicSentPacketManager* sent_packet_manager, 26 const QuicSentPacketManager* sent_packet_manager,
27 QuicPacketSequenceNumber sequence_number); 27 QuicPacketSequenceNumber sequence_number);
28 28
29 static size_t GetPendingRetransmissionCount( 29 static size_t GetPendingRetransmissionCount(
30 const QuicSentPacketManager* sent_packet_manager); 30 const QuicSentPacketManager* sent_packet_manager);
31 31
32 static const SequenceNumberSet& GetPendingPackets( 32 static bool HasPendingPackets(
33 const QuicSentPacketManager* sent_packet_manager); 33 const QuicSentPacketManager* sent_packet_manager);
34 34
35 static QuicTime GetSentTime(const QuicSentPacketManager* sent_packet_manager, 35 static QuicTime GetSentTime(const QuicSentPacketManager* sent_packet_manager,
36 QuicPacketSequenceNumber sequence_number); 36 QuicPacketSequenceNumber sequence_number);
37 37
38 static QuicTime::Delta rtt(QuicSentPacketManager* sent_packet_manager); 38 static QuicTime::Delta rtt(QuicSentPacketManager* sent_packet_manager);
39 39
40 // Returns true if |sequence_number| is a retransmission of a packet. 40 // Returns true if |sequence_number| is a retransmission of a packet.
41 static bool IsRetransmission(QuicSentPacketManager* sent_packet_manager, 41 static bool IsRetransmission(QuicSentPacketManager* sent_packet_manager,
42 QuicPacketSequenceNumber sequence_number); 42 QuicPacketSequenceNumber sequence_number);
(...skipping 10 matching lines...) Expand all
53 53
54 private: 54 private:
55 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); 55 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer);
56 }; 56 };
57 57
58 } // namespace test 58 } // namespace test
59 59
60 } // namespace net 60 } // namespace net
61 61
62 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ 62 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/test_tools/quic_sent_packet_manager_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698