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

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

Issue 2834723002: Landing Recent QUIC changes until Thu Apr 20 2017 (Closed)
Patch Set: Format Created 3 years, 8 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/platform/impl/quic_socket_utils.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 3f3f235180e232df8aaf3587cd4ca060aa08ad92..2b582dded4d61840e76574d9d59224b42d101126 100644
--- a/net/tools/quic/quic_dispatcher_test.cc
+++ b/net/tools/quic/quic_dispatcher_test.cc
@@ -535,7 +535,7 @@ TEST_F(QuicDispatcherTest, SupportedVersionsChangeInFlight) {
static_assert(arraysize(kSupportedQuicVersions) == 5u,
"Supported versions out of sync");
FLAGS_quic_reloadable_flag_quic_enable_version_38 = true;
- SetQuicFlag(&FLAGS_quic_enable_version_39, true);
+ FLAGS_quic_enable_version_39 = true;
QuicSocketAddress client_address(QuicIpAddress::Loopback4(), 1);
server_address_ = QuicSocketAddress(QuicIpAddress::Any4(), 5);
QuicConnectionId connection_id = 1;
@@ -575,7 +575,7 @@ TEST_F(QuicDispatcherTest, SupportedVersionsChangeInFlight) {
PACKET_6BYTE_PACKET_NUMBER, 1);
// Turn off version 39.
- SetQuicFlag(&FLAGS_quic_enable_version_39, false);
+ FLAGS_quic_enable_version_39 = false;
++connection_id;
EXPECT_CALL(*dispatcher_, CreateQuicSession(connection_id, client_address))
.Times(0);
@@ -584,7 +584,7 @@ TEST_F(QuicDispatcherTest, SupportedVersionsChangeInFlight) {
PACKET_6BYTE_PACKET_NUMBER, 1);
// Turn on version 39.
- SetQuicFlag(&FLAGS_quic_enable_version_39, true);
+ FLAGS_quic_enable_version_39 = true;
++connection_id;
EXPECT_CALL(*dispatcher_, CreateQuicSession(connection_id, client_address))
.WillOnce(testing::Return(CreateSession(
« no previous file with comments | « net/tools/quic/platform/impl/quic_socket_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698