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

Side by Side Diff: net/tools/quic/quic_dispatcher_test.cc

Issue 2713773005: Deprecating FLAGS_quic_reloadable_flag_quic_fix_version_manager (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « net/tools/quic/quic_dispatcher.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/tools/quic/quic_dispatcher.h" 5 #include "net/tools/quic/quic_dispatcher.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <ostream> 8 #include <ostream>
9 #include <string> 9 #include <string>
10 10
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 // connection. 528 // connection.
529 ProcessPacket(client_address, connection_id, true, false, SerializeCHLO(), 529 ProcessPacket(client_address, connection_id, true, false, SerializeCHLO(),
530 PACKET_8BYTE_CONNECTION_ID, PACKET_6BYTE_PACKET_NUMBER, 530 PACKET_8BYTE_CONNECTION_ID, PACKET_6BYTE_PACKET_NUMBER,
531 kDefaultPathId, 531 kDefaultPathId,
532 QuicDispatcher::kMaxReasonableInitialPacketNumber + 1); 532 QuicDispatcher::kMaxReasonableInitialPacketNumber + 1);
533 } 533 }
534 534
535 TEST_F(QuicDispatcherTest, SupportedVersionsChangeInFlight) { 535 TEST_F(QuicDispatcherTest, SupportedVersionsChangeInFlight) {
536 static_assert(arraysize(kSupportedQuicVersions) == 5u, 536 static_assert(arraysize(kSupportedQuicVersions) == 5u,
537 "Supported versions out of sync"); 537 "Supported versions out of sync");
538 FLAGS_quic_reloadable_flag_quic_fix_version_manager = true;
539 FLAGS_quic_reloadable_flag_quic_disable_version_34 = false; 538 FLAGS_quic_reloadable_flag_quic_disable_version_34 = false;
540 FLAGS_quic_reloadable_flag_quic_enable_version_36_v3 = true; 539 FLAGS_quic_reloadable_flag_quic_enable_version_36_v3 = true;
541 FLAGS_quic_reloadable_flag_quic_enable_version_37 = true; 540 FLAGS_quic_reloadable_flag_quic_enable_version_37 = true;
542 FLAGS_quic_enable_version_38 = true; 541 FLAGS_quic_enable_version_38 = true;
543 QuicSocketAddress client_address(QuicIpAddress::Loopback4(), 1); 542 QuicSocketAddress client_address(QuicIpAddress::Loopback4(), 1);
544 server_address_ = QuicSocketAddress(QuicIpAddress::Any4(), 5); 543 server_address_ = QuicSocketAddress(QuicIpAddress::Any4(), 5);
545 QuicConnectionId connection_id = 1; 544 QuicConnectionId connection_id = 1;
546 545
547 EXPECT_CALL(*dispatcher_, CreateQuicSession(connection_id, client_address)) 546 EXPECT_CALL(*dispatcher_, CreateQuicSession(connection_id, client_address))
548 .Times(0); 547 .Times(0);
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after
2074 check.Call(2); 2073 check.Call(2);
2075 GetFakeProofSource()->InvokePendingCallback(0); 2074 GetFakeProofSource()->InvokePendingCallback(0);
2076 ASSERT_EQ(GetFakeProofSource()->NumPendingCallbacks(), 0); 2075 ASSERT_EQ(GetFakeProofSource()->NumPendingCallbacks(), 0);
2077 EXPECT_FALSE(store->HasBufferedPackets(conn_id)); 2076 EXPECT_FALSE(store->HasBufferedPackets(conn_id));
2078 EXPECT_FALSE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id)); 2077 EXPECT_FALSE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id));
2079 } 2078 }
2080 2079
2081 } // namespace 2080 } // namespace
2082 } // namespace test 2081 } // namespace test
2083 } // namespace net 2082 } // namespace net
OLDNEW
« 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