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

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

Issue 2679783003: Deprecate FLAGS_quic_reloadable_flag_enable_async_get_proof (Closed)
Patch Set: Address gredner's comments. Created 3 years, 10 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 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1604 // Test which exercises the async GetProof codepaths, especially in the context 1604 // Test which exercises the async GetProof codepaths, especially in the context
1605 // of stateless rejection. 1605 // of stateless rejection.
1606 class AsyncGetProofTest : public QuicDispatcherTest { 1606 class AsyncGetProofTest : public QuicDispatcherTest {
1607 public: 1607 public:
1608 AsyncGetProofTest() 1608 AsyncGetProofTest()
1609 : QuicDispatcherTest( 1609 : QuicDispatcherTest(
1610 std::unique_ptr<FakeProofSource>(new FakeProofSource())), 1610 std::unique_ptr<FakeProofSource>(new FakeProofSource())),
1611 client_addr_(QuicIpAddress::Loopback4(), 1234), 1611 client_addr_(QuicIpAddress::Loopback4(), 1234),
1612 crypto_config_peer_(&crypto_config_), 1612 crypto_config_peer_(&crypto_config_),
1613 signed_config_(new QuicSignedServerConfig) { 1613 signed_config_(new QuicSignedServerConfig) {
1614 FLAGS_quic_reloadable_flag_enable_async_get_proof = true;
1615 FLAGS_quic_reloadable_flag_enable_quic_stateless_reject_support = true; 1614 FLAGS_quic_reloadable_flag_enable_quic_stateless_reject_support = true;
1616 FLAGS_quic_reloadable_flag_quic_use_cheap_stateless_rejects = true; 1615 FLAGS_quic_reloadable_flag_quic_use_cheap_stateless_rejects = true;
1617 FLAGS_quic_reloadable_flag_quic_create_session_after_insertion = true; 1616 FLAGS_quic_reloadable_flag_quic_create_session_after_insertion = true;
1618 } 1617 }
1619 1618
1620 void SetUp() override { 1619 void SetUp() override {
1621 QuicDispatcherTest::SetUp(); 1620 QuicDispatcherTest::SetUp();
1622 1621
1623 clock_ = QuicDispatcherPeer::GetHelper(dispatcher_.get())->GetClock(); 1622 clock_ = QuicDispatcherPeer::GetHelper(dispatcher_.get())->GetClock();
1624 QuicVersion version = AllSupportedVersions().front(); 1623 QuicVersion version = AllSupportedVersions().front();
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
2083 check.Call(2); 2082 check.Call(2);
2084 GetFakeProofSource()->InvokePendingCallback(0); 2083 GetFakeProofSource()->InvokePendingCallback(0);
2085 ASSERT_EQ(GetFakeProofSource()->NumPendingCallbacks(), 0); 2084 ASSERT_EQ(GetFakeProofSource()->NumPendingCallbacks(), 0);
2086 EXPECT_FALSE(store->HasBufferedPackets(conn_id)); 2085 EXPECT_FALSE(store->HasBufferedPackets(conn_id));
2087 EXPECT_FALSE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id)); 2086 EXPECT_FALSE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id));
2088 } 2087 }
2089 2088
2090 } // namespace 2089 } // namespace
2091 } // namespace test 2090 } // namespace test
2092 } // namespace net 2091 } // 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