Index: net/tools/quic/test_tools/packet_dropping_test_writer.cc |
diff --git a/net/tools/quic/test_tools/packet_dropping_test_writer.cc b/net/tools/quic/test_tools/packet_dropping_test_writer.cc |
index 54424887951512166037a8a98d942ee19a801095..8b2141cfc879fcccde9ab4117357ab06cbfc3695 100644 |
--- a/net/tools/quic/test_tools/packet_dropping_test_writer.cc |
+++ b/net/tools/quic/test_tools/packet_dropping_test_writer.cc |
@@ -50,7 +50,6 @@ PacketDroppingTestWriter::PacketDroppingTestWriter() |
: clock_(nullptr), |
cur_buffer_size_(0), |
num_calls_to_write_(0), |
- max_allowed_packet_size_(std::numeric_limits<QuicByteCount>::max()), |
config_mutex_(), |
fake_packet_loss_percentage_(0), |
fake_drop_first_n_packets_(0), |
@@ -82,7 +81,6 @@ WriteResult PacketDroppingTestWriter::WritePacket( |
const IPAddress& self_address, |
const IPEndPoint& peer_address, |
PerPacketOptions* options) { |
- CHECK_LE(buf_len, max_allowed_packet_size_); |
++num_calls_to_write_; |
ReleaseOldPackets(); |