| Index: net/quic/core/quic_connection_test.cc
|
| diff --git a/net/quic/core/quic_connection_test.cc b/net/quic/core/quic_connection_test.cc
|
| index ad46914da5bbed56e037924fedbd0459e1dcd9af..63fd8eb78e7116da95c72faccf159e6cb471dd19 100644
|
| --- a/net/quic/core/quic_connection_test.cc
|
| +++ b/net/quic/core/quic_connection_test.cc
|
| @@ -5317,6 +5317,17 @@ TEST_P(QuicConnectionTest, DonotForceSendingAckOnPacketTooLarge) {
|
| EXPECT_TRUE(writer_->ack_frames().empty());
|
| }
|
|
|
| +TEST_P(QuicConnectionTest, CloseConnectionForStatelessReject) {
|
| + string error_details("stateless reject");
|
| + EXPECT_CALL(visitor_, OnConnectionClosed(
|
| + QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT,
|
| + error_details, ConnectionCloseSource::FROM_PEER));
|
| + connection_.set_perspective(Perspective::IS_CLIENT);
|
| + connection_.CloseConnection(QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT,
|
| + error_details,
|
| + ConnectionCloseBehavior::SILENT_CLOSE);
|
| +}
|
| +
|
| } // namespace
|
| } // namespace test
|
| } // namespace net
|
|
|