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

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

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
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
(Empty)
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.
4
5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_
7
8 #include "net/quic/quic_protocol.h"
9 #include "net/quic/quic_sent_packet_manager.h"
10
11 namespace net {
12
13 class SendAlgorithmInterface;
14
15 namespace test {
16
17 class QuicSentPacketManagerPeer {
18 public:
19 static size_t GetMaxTailLossProbes(
20 QuicSentPacketManager* sent_packet_manager);
21
22 static void SetMaxTailLossProbes(
23 QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes);
24
25 static bool GetUseNewRto(QuicSentPacketManager* sent_packet_manager);
26
27 static QuicByteCount GetReceiveWindow(
28 QuicSentPacketManager* sent_packet_manager);
29
30 static void SetIsServer(QuicSentPacketManager* sent_packet_manager,
31 bool is_server);
32
33 static const SendAlgorithmInterface* GetSendAlgorithm(
34 const QuicSentPacketManager& sent_packet_manager);
35
36 static void SetSendAlgorithm(QuicSentPacketManager* sent_packet_manager,
37 SendAlgorithmInterface* send_algorithm);
38
39 static const LossDetectionInterface* GetLossAlgorithm(
40 QuicSentPacketManager* sent_packet_manager);
41
42 static void SetLossAlgorithm(QuicSentPacketManager* sent_packet_manager,
43 LossDetectionInterface* loss_detector);
44
45 static RttStats* GetRttStats(QuicSentPacketManager* sent_packet_manager);
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(
55 const QuicSentPacketManager* sent_packet_manager);
56
57 static QuicTime GetSentTime(const QuicSentPacketManager* sent_packet_manager,
58 QuicPacketSequenceNumber sequence_number);
59
60 // Returns true if |sequence_number| is a retransmission of a packet.
61 static bool IsRetransmission(QuicSentPacketManager* sent_packet_manager,
62 QuicPacketSequenceNumber sequence_number);
63
64 static void MarkForRetransmission(QuicSentPacketManager* sent_packet_manager,
65 QuicPacketSequenceNumber sequence_number,
66 TransmissionType transmission_type);
67
68 static QuicTime::Delta GetRetransmissionDelay(
69 const QuicSentPacketManager* sent_packet_manager);
70
71 static bool HasUnackedCryptoPackets(
72 const QuicSentPacketManager* sent_packet_manager);
73
74 static size_t GetNumRetransmittablePackets(
75 const QuicSentPacketManager* sent_packet_manager);
76
77 static QuicByteCount GetBytesInFlight(
78 const QuicSentPacketManager* sent_packet_manager);
79
80 static QuicSentPacketManager::NetworkChangeVisitor* GetNetworkChangeVisitor(
81 const QuicSentPacketManager* sent_packet_manager);
82
83 static QuicSustainedBandwidthRecorder& GetBandwidthRecorder(
84 QuicSentPacketManager* sent_packet_manager);
85
86 private:
87 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer);
88 };
89
90 } // namespace test
91
92 } // namespace net
93
94 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_received_packet_manager_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