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

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

Issue 968233004: Land Recent QUIC Changes until 03/02/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
Patch Set: Created 5 years, 9 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
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 26 matching lines...) Expand all
37 SendAlgorithmInterface* send_algorithm); 37 SendAlgorithmInterface* send_algorithm);
38 38
39 static const LossDetectionInterface* GetLossAlgorithm( 39 static const LossDetectionInterface* GetLossAlgorithm(
40 QuicSentPacketManager* sent_packet_manager); 40 QuicSentPacketManager* sent_packet_manager);
41 41
42 static void SetLossAlgorithm(QuicSentPacketManager* sent_packet_manager, 42 static void SetLossAlgorithm(QuicSentPacketManager* sent_packet_manager,
43 LossDetectionInterface* loss_detector); 43 LossDetectionInterface* loss_detector);
44 44
45 static RttStats* GetRttStats(QuicSentPacketManager* sent_packet_manager); 45 static RttStats* GetRttStats(QuicSentPacketManager* sent_packet_manager);
46 46
47 static QuicPacketCount GetNackCount(
48 const QuicSentPacketManager* sent_packet_manager,
49 QuicPacketSequenceNumber sequence_number);
50
51 static size_t GetPendingRetransmissionCount(
52 const QuicSentPacketManager* sent_packet_manager);
53
54 static bool HasPendingPackets( 47 static bool HasPendingPackets(
55 const QuicSentPacketManager* sent_packet_manager); 48 const QuicSentPacketManager* sent_packet_manager);
56 49
57 static QuicTime GetSentTime(const QuicSentPacketManager* sent_packet_manager, 50 static QuicTime GetSentTime(const QuicSentPacketManager* sent_packet_manager,
58 QuicPacketSequenceNumber sequence_number); 51 QuicPacketSequenceNumber sequence_number);
59 52
60 // Returns true if |sequence_number| is a retransmission of a packet. 53 // Returns true if |sequence_number| is a retransmission of a packet.
61 static bool IsRetransmission(QuicSentPacketManager* sent_packet_manager, 54 static bool IsRetransmission(QuicSentPacketManager* sent_packet_manager,
62 QuicPacketSequenceNumber sequence_number); 55 QuicPacketSequenceNumber sequence_number);
63 56
(...skipping 21 matching lines...) Expand all
85 78
86 private: 79 private:
87 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); 80 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer);
88 }; 81 };
89 82
90 } // namespace test 83 } // namespace test
91 84
92 } // namespace net 85 } // namespace net
93 86
94 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ 87 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.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