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

Unified Diff: net/quic/test_tools/quic_sent_packet_manager_peer.cc

Issue 399153003: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added NET_EXPORT_PRIVATE Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/test_tools/quic_sent_packet_manager_peer.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_sent_packet_manager_peer.cc
diff --git a/net/quic/test_tools/quic_sent_packet_manager_peer.cc b/net/quic/test_tools/quic_sent_packet_manager_peer.cc
index 786e63c9b47ac49f9b525605ded8e9e12bb42688..2b2fcb9d02d133887649bb273be01b614e23e0a1 100644
--- a/net/quic/test_tools/quic_sent_packet_manager_peer.cc
+++ b/net/quic/test_tools/quic_sent_packet_manager_peer.cc
@@ -33,6 +33,13 @@ const LossDetectionInterface* QuicSentPacketManagerPeer::GetLossAlgorithm(
}
// static
+const SendAlgorithmInterface*
+QuicSentPacketManagerPeer::GetCongestionControlAlgorithm(
+ QuicSentPacketManager* sent_packet_manager) {
+ return sent_packet_manager->send_algorithm_.get();
+}
+
+// static
void QuicSentPacketManagerPeer::SetLossAlgorithm(
QuicSentPacketManager* sent_packet_manager,
LossDetectionInterface* loss_detector) {
@@ -126,5 +133,12 @@ QuicByteCount QuicSentPacketManagerPeer::GetBytesInFlight(
return sent_packet_manager->unacked_packets_.bytes_in_flight();
}
+// static
+QuicSentPacketManager::NetworkChangeVisitor*
+ QuicSentPacketManagerPeer::GetNetworkChangeVisitor(
+ const QuicSentPacketManager* sent_packet_manager) {
+ return sent_packet_manager->network_change_visitor_;
+}
+
} // namespace test
} // namespace net
« no previous file with comments | « net/quic/test_tools/quic_sent_packet_manager_peer.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698