Index: net/quic/quic_session.cc |
diff --git a/net/quic/quic_session.cc b/net/quic/quic_session.cc |
index 5ac6a9d0e5236b24050a8a4b992d6ef94659711b..a981b5e8e9e6b42ee24cde40a5a5260a305f58b3 100644 |
--- a/net/quic/quic_session.cc |
+++ b/net/quic/quic_session.cc |
@@ -588,6 +588,17 @@ size_t QuicSession::GetNumOpenStreams() const { |
} |
void QuicSession::MarkWriteBlocked(QuicStreamId id, QuicPriority priority) { |
+#ifndef NDEBUG |
+ ReliableQuicStream* stream = GetStream(id); |
+ if (stream != NULL) { |
+ LOG_IF(DFATAL, priority != stream->EffectivePriority()) |
+ << "Priorities do not match. Got: " << priority |
+ << " Expected: " << stream->EffectivePriority(); |
+ } else { |
+ LOG(DFATAL) << "Marking unknown stream " << id << " blocked."; |
+ } |
+#endif |
+ |
if (id == kCryptoStreamId) { |
DCHECK(!has_pending_handshake_); |
has_pending_handshake_ = true; |