Chromium Code Reviews| Index: net/quic/quic_session.cc |
| diff --git a/net/quic/quic_session.cc b/net/quic/quic_session.cc |
| index 5ac6a9d0e5236b24050a8a4b992d6ef94659711b..f906c4f1f594e49ab41f6147eeb8083e79620852 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 != nullptr) { |
|
Ryan Hamilton
2014/01/14 00:39:58
I don't think we have nullptr yet. (This is my fa
ramant (doing other things)
2014/01/14 07:49:01
Sorry to have missed it.
Done.
|
| + 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; |