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

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

Issue 515303003: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix for 409191 Created 6 years, 3 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/quic_unacked_packet_map_test.cc ('k') | net/tools/quic/quic_client_session_test.cc » ('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 94e46077addb69223de24ba4785e51d6a1f86849..80928524847ed5bc444199a44c94789d19db0378 100644
--- a/net/quic/test_tools/quic_sent_packet_manager_peer.cc
+++ b/net/quic/test_tools/quic_sent_packet_manager_peer.cc
@@ -89,7 +89,7 @@ bool QuicSentPacketManagerPeer::IsRetransmission(
DCHECK(sent_packet_manager->HasRetransmittableFrames(sequence_number));
return sent_packet_manager->HasRetransmittableFrames(sequence_number) &&
sent_packet_manager->unacked_packets_.GetTransmissionInfo(
- sequence_number).all_transmissions->size() > 1;
+ sequence_number).all_transmissions != NULL;
}
// static
@@ -120,7 +120,7 @@ size_t QuicSentPacketManagerPeer::GetNumRetransmittablePackets(
for (QuicUnackedPacketMap::const_iterator it =
sent_packet_manager->unacked_packets_.begin();
it != sent_packet_manager->unacked_packets_.end(); ++it) {
- if (it->second.retransmittable_frames != NULL) {
+ if (it->retransmittable_frames != NULL) {
++num_unacked_packets;
}
}
« no previous file with comments | « net/quic/quic_unacked_packet_map_test.cc ('k') | net/tools/quic/quic_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698