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

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

Issue 1983183002: Landing Recent QUIC changes until 5/14/2016 02:25:25 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "first try to fix link error for win_clang build" Created 4 years, 7 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 12 matching lines...) Expand all
23 QuicSentPacketManager* sent_packet_manager); 23 QuicSentPacketManager* sent_packet_manager);
24 24
25 static void SetMaxTailLossProbes(QuicSentPacketManager* sent_packet_manager, 25 static void SetMaxTailLossProbes(QuicSentPacketManager* sent_packet_manager,
26 size_t max_tail_loss_probes); 26 size_t max_tail_loss_probes);
27 27
28 static bool GetEnableHalfRttTailLossProbe( 28 static bool GetEnableHalfRttTailLossProbe(
29 QuicSentPacketManager* sent_packet_manager); 29 QuicSentPacketManager* sent_packet_manager);
30 30
31 static bool GetUseNewRto(QuicSentPacketManager* sent_packet_manager); 31 static bool GetUseNewRto(QuicSentPacketManager* sent_packet_manager);
32 32
33 static bool GetUndoRetransmits(QuicSentPacketManager* sent_packet_manager);
34
33 static QuicByteCount GetReceiveWindow( 35 static QuicByteCount GetReceiveWindow(
34 QuicSentPacketManager* sent_packet_manager); 36 QuicSentPacketManager* sent_packet_manager);
35 37
36 static void SetPerspective(QuicSentPacketManager* sent_packet_manager, 38 static void SetPerspective(QuicSentPacketManager* sent_packet_manager,
37 Perspective perspective); 39 Perspective perspective);
38 40
39 static SendAlgorithmInterface* GetSendAlgorithm( 41 static SendAlgorithmInterface* GetSendAlgorithm(
40 const QuicSentPacketManager& sent_packet_manager); 42 const QuicSentPacketManager& sent_packet_manager);
41 43
42 static void SetSendAlgorithm(QuicSentPacketManager* sent_packet_manager, 44 static void SetSendAlgorithm(QuicSentPacketManager* sent_packet_manager,
43 SendAlgorithmInterface* send_algorithm); 45 SendAlgorithmInterface* send_algorithm);
44 46
45 static const LossDetectionInterface* GetLossAlgorithm( 47 static const LossDetectionInterface* GetLossAlgorithm(
46 QuicSentPacketManager* sent_packet_manager); 48 QuicSentPacketManager* sent_packet_manager);
47 49
48 static void SetLossAlgorithm(QuicSentPacketManager* sent_packet_manager, 50 static void SetLossAlgorithm(QuicSentPacketManager* sent_packet_manager,
49 LossDetectionInterface* loss_detector); 51 LossDetectionInterface* loss_detector);
50 52
51 static RttStats* GetRttStats(QuicSentPacketManager* sent_packet_manager);
52
53 static bool HasPendingPackets( 53 static bool HasPendingPackets(
54 const QuicSentPacketManager* sent_packet_manager); 54 const QuicSentPacketManager* sent_packet_manager);
55 55
56 static QuicTime GetSentTime(const QuicSentPacketManager* sent_packet_manager, 56 static QuicTime GetSentTime(const QuicSentPacketManager* sent_packet_manager,
57 QuicPacketNumber packet_number); 57 QuicPacketNumber packet_number);
58 58
59 // Returns true if |packet_number| is a retransmission of a packet. 59 // Returns true if |packet_number| is a retransmission of a packet.
60 static bool IsRetransmission(QuicSentPacketManager* sent_packet_manager, 60 static bool IsRetransmission(QuicSentPacketManager* sent_packet_manager,
61 QuicPacketNumber packet_number); 61 QuicPacketNumber packet_number);
62 62
(...skipping 27 matching lines...) Expand all
90 90
91 private: 91 private:
92 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); 92 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer);
93 }; 93 };
94 94
95 } // namespace test 95 } // namespace test
96 96
97 } // namespace net 97 } // namespace net
98 98
99 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ 99 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/reliable_quic_stream_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