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

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

Issue 2223983002: Flatten GeneralLossAlgorithm into QuicSentPacketManager. Not flag protected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: net/quic/test_tools/quic_connection_peer.cc
diff --git a/net/quic/test_tools/quic_connection_peer.cc b/net/quic/test_tools/quic_connection_peer.cc
index fd2a3afe0f9c4c21af128559570e04c5ae3516d4..80532ac4aff01e7efe0b3bd5396a9f384e8f3b0f 100644
--- a/net/quic/test_tools/quic_connection_peer.cc
+++ b/net/quic/test_tools/quic_connection_peer.cc
@@ -36,8 +36,7 @@ void QuicConnectionPeer::SetLossAlgorithm(
QuicConnection* connection,
QuicPathId path_id,
LossDetectionInterface* loss_algorithm) {
- GetSentPacketManager(connection, path_id)
- ->loss_algorithm_.reset(loss_algorithm);
+ GetSentPacketManager(connection, path_id)->loss_algorithm_ = loss_algorithm;
}
// static
« no previous file with comments | « net/quic/core/quic_sent_packet_manager_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