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

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

Issue 497553004: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with TOT Created 6 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
« no previous file with comments | « net/quic/quic_unacked_packet_map.cc ('k') | net/quic/test_tools/quic_sent_packet_manager_peer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b7526563bba7a59f013be6c2a6797a0de3276ca5..a14824918f855497761c24e744acb01de5f1cb03 100644
--- a/net/quic/test_tools/quic_connection_peer.cc
+++ b/net/quic/test_tools/quic_connection_peer.cc
@@ -107,15 +107,18 @@ bool QuicConnectionPeer::IsRetransmission(
QuicPacketEntropyHash QuicConnectionPeer::GetSentEntropyHash(
QuicConnection* connection,
QuicPacketSequenceNumber sequence_number) {
- return connection->sent_entropy_manager_.EntropyHash(sequence_number);
+ QuicSentEntropyManager::CumulativeEntropy last_entropy_copy =
+ connection->sent_entropy_manager_.last_cumulative_entropy_;
+ connection->sent_entropy_manager_.UpdateCumulativeEntropy(sequence_number,
+ &last_entropy_copy);
+ return last_entropy_copy.entropy;
}
// static
QuicPacketEntropyHash QuicConnectionPeer::PacketEntropy(
QuicConnection* connection,
QuicPacketSequenceNumber sequence_number) {
- return
- connection->sent_entropy_manager_.packets_entropy_[sequence_number].first;
+ return connection->sent_entropy_manager_.GetPacketEntropy(sequence_number);
}
// static
« no previous file with comments | « net/quic/quic_unacked_packet_map.cc ('k') | net/quic/test_tools/quic_sent_packet_manager_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698