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

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

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 bebd5545170add9f54c2e6e4cc7f681acc2fa765..bb9fb38ee4995ed7326e39e3d5c23f5e47450d4a 100644
--- a/net/quic/test_tools/quic_sent_packet_manager_peer.cc
+++ b/net/quic/test_tools/quic_sent_packet_manager_peer.cc
@@ -14,16 +14,21 @@ namespace net {
namespace test {
// static
+size_t QuicSentPacketManagerPeer::GetMaxTailLossProbes(
+ QuicSentPacketManager* sent_packet_manager) {
+ return sent_packet_manager->max_tail_loss_probes_;
+}
+
+// static
void QuicSentPacketManagerPeer::SetMaxTailLossProbes(
QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes) {
sent_packet_manager->max_tail_loss_probes_ = max_tail_loss_probes;
}
// static
-void QuicSentPacketManagerPeer::SetSendAlgorithm(
- QuicSentPacketManager* sent_packet_manager,
- SendAlgorithmInterface* send_algorithm) {
- sent_packet_manager->send_algorithm_.reset(send_algorithm);
+QuicByteCount QuicSentPacketManagerPeer::GetReceiveWindow(
+ QuicSentPacketManager* sent_packet_manager) {
+ return sent_packet_manager->receive_buffer_bytes_;
}
// static
@@ -34,19 +39,26 @@ void QuicSentPacketManagerPeer::SetIsServer(
}
// static
-const LossDetectionInterface* QuicSentPacketManagerPeer::GetLossAlgorithm(
- QuicSentPacketManager* sent_packet_manager) {
- return sent_packet_manager->loss_algorithm_.get();
-}
-
-// static
const SendAlgorithmInterface*
- QuicSentPacketManagerPeer::GetCongestionControlAlgorithm(
+ QuicSentPacketManagerPeer::GetSendAlgorithm(
const QuicSentPacketManager& sent_packet_manager) {
return sent_packet_manager.send_algorithm_.get();
}
// static
+void QuicSentPacketManagerPeer::SetSendAlgorithm(
+ QuicSentPacketManager* sent_packet_manager,
+ SendAlgorithmInterface* send_algorithm) {
+ sent_packet_manager->send_algorithm_.reset(send_algorithm);
+}
+
+// static
+const LossDetectionInterface* QuicSentPacketManagerPeer::GetLossAlgorithm(
+ QuicSentPacketManager* sent_packet_manager) {
+ return sent_packet_manager->loss_algorithm_.get();
+}
+
+// static
void QuicSentPacketManagerPeer::SetLossAlgorithm(
QuicSentPacketManager* sent_packet_manager,
LossDetectionInterface* loss_detector) {
« 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