| Index: net/tools/quic/quic_default_packet_writer.cc
|
| diff --git a/net/tools/quic/quic_default_packet_writer.cc b/net/tools/quic/quic_default_packet_writer.cc
|
| index 66a6440c535664c237ceca113a00af0991fb141e..e1d6fbf915030fb62691693942b4c77d7a519949 100644
|
| --- a/net/tools/quic/quic_default_packet_writer.cc
|
| +++ b/net/tools/quic/quic_default_packet_writer.cc
|
| @@ -18,7 +18,7 @@ WriteResult QuicDefaultPacketWriter::WritePacket(const char* buffer,
|
| const IPAddress& self_address,
|
| const IPEndPoint& peer_address,
|
| PerPacketOptions* options) {
|
| - DCHECK(!IsWriteBlocked());
|
| + DCHECK(!write_blocked_);
|
| DCHECK(nullptr == options)
|
| << "QuicDefaultPacketWriter does not accept any options.";
|
| WriteResult result = QuicSocketUtils::WritePacket(fd_, buffer, buf_len,
|
| @@ -46,4 +46,8 @@ QuicByteCount QuicDefaultPacketWriter::GetMaxPacketSize(
|
| return kMaxPacketSize;
|
| }
|
|
|
| +void QuicDefaultPacketWriter::set_write_blocked(bool is_blocked) {
|
| + write_blocked_ = is_blocked;
|
| +}
|
| +
|
| } // namespace net
|
|
|