Index: net/quic/quic_connection_test.cc |
diff --git a/net/quic/quic_connection_test.cc b/net/quic/quic_connection_test.cc |
index 33211114c494b87b3d8e87c14995ef1f7fb3ea74..7923be2ecfb06d3403e1acfe5892008c6be13180 100644 |
--- a/net/quic/quic_connection_test.cc |
+++ b/net/quic/quic_connection_test.cc |
@@ -3213,15 +3213,11 @@ TEST_P(QuicConnectionTest, Blocked) { |
ProcessFramePacket(QuicFrame(&blocked)); |
} |
-TEST_P(QuicConnectionTest, InvalidPacket) { |
- EXPECT_CALL(visitor_, |
- OnConnectionClosed(QUIC_INVALID_PACKET_HEADER, false)); |
+TEST_P(QuicConnectionTest, ZeroBytePacket) { |
+ // Don't close the connection for zero byte packets. |
+ EXPECT_CALL(visitor_, OnConnectionClosed(_, _)).Times(0); |
QuicEncryptedPacket encrypted(nullptr, 0); |
connection_.ProcessUdpPacket(IPEndPoint(), IPEndPoint(), encrypted); |
- // The connection close packet should have error details. |
- ASSERT_FALSE(writer_->connection_close_frames().empty()); |
- EXPECT_EQ("Unable to read public flags.", |
- writer_->connection_close_frames()[0].error_details); |
} |
TEST_P(QuicConnectionTest, MissingPacketsBeforeLeastUnacked) { |