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

Unified Diff: net/tools/quic/quic_dispatcher_test.cc

Issue 1975403002: Deprecate --quic_stateless_version_negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@121437600
Patch Set: Created 4 years, 7 months 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/tools/quic/quic_dispatcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher_test.cc
diff --git a/net/tools/quic/quic_dispatcher_test.cc b/net/tools/quic/quic_dispatcher_test.cc
index b70b348a67976f79ef9b57bd6b4a69d1648e4efa..9b305696cbef12d6cfbf19917d17a3c2d8a9202d 100644
--- a/net/tools/quic/quic_dispatcher_test.cc
+++ b/net/tools/quic/quic_dispatcher_test.cc
@@ -310,7 +310,6 @@ TEST_F(QuicDispatcherTest, ProcessPackets) {
}
TEST_F(QuicDispatcherTest, StatelessVersionNegotiation) {
- ValueRestore<bool> old_flag(&FLAGS_quic_stateless_version_negotiation, true);
IPEndPoint client_address(net::test::Loopback4(), 1);
server_address_ = IPEndPoint(net::test::Any4(), 5);
@@ -320,21 +319,6 @@ TEST_F(QuicDispatcherTest, StatelessVersionNegotiation) {
PACKET_8BYTE_CONNECTION_ID, PACKET_6BYTE_PACKET_NUMBER, 1);
}
-TEST_F(QuicDispatcherTest, StatefulVersionNegotiation) {
- ValueRestore<bool> old_flag(&FLAGS_quic_stateless_version_negotiation, false);
- IPEndPoint client_address(net::test::Loopback4(), 1);
- server_address_ = IPEndPoint(net::test::Any4(), 5);
-
- EXPECT_CALL(dispatcher_, CreateQuicSession(1, client_address))
- .WillOnce(testing::Return(CreateSession(
- &dispatcher_, config_, 1, client_address, &mock_helper_,
- &mock_alarm_factory_, &crypto_config_,
- QuicDispatcherPeer::GetCache(&dispatcher_), &session1_)));
- QuicVersion version = static_cast<QuicVersion>(QuicVersionMin() - 1);
- ProcessPacket(client_address, 1, true, version, "foo",
- PACKET_8BYTE_CONNECTION_ID, PACKET_6BYTE_PACKET_NUMBER, 1);
-}
-
TEST_F(QuicDispatcherTest, Shutdown) {
IPEndPoint client_address(net::test::Loopback4(), 1);
« no previous file with comments | « net/tools/quic/quic_dispatcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698