Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1603)

Unified Diff: net/quic/core/quic_connection_test.cc

Issue 2511893003: In case of stateless reject, change quic connection close source from client to server on client si… (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_connection.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « net/quic/core/quic_connection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698