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

Unified Diff: net/quic/quic_framer.cc

Issue 76723002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation error Created 7 years, 1 month 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_connection_test.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_framer.cc
diff --git a/net/quic/quic_framer.cc b/net/quic/quic_framer.cc
index 244326393303603e8e18b5a08ee8f4572822ffb4..a49e6a9920428c6f3a452c7b5806843fc6800fce 100644
--- a/net/quic/quic_framer.cc
+++ b/net/quic/quic_framer.cc
@@ -1957,6 +1957,8 @@ bool QuicFramer::AppendAckFramePayloadV11(
}
uint32 delta_time_largest_observed_us = kInvalidDeltaTime;
if (!frame.received_info.delta_time_largest_observed.IsInfinite()) {
+ DCHECK_LE(0u,
+ frame.received_info.delta_time_largest_observed.ToMicroseconds());
delta_time_largest_observed_us =
frame.received_info.delta_time_largest_observed.ToMicroseconds();
}
@@ -2095,6 +2097,8 @@ bool QuicFramer::AppendAckFramePayloadAndTypeByte(
uint64 delta_time_largest_observed_us = kUFloat16MaxValue;
if (!received_info.delta_time_largest_observed.IsInfinite()) {
+ DCHECK_LE(0u,
+ frame.received_info.delta_time_largest_observed.ToMicroseconds());
delta_time_largest_observed_us =
received_info.delta_time_largest_observed.ToMicroseconds();
}
« no previous file with comments | « net/quic/quic_connection_test.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698