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

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

Issue 2100863003: Disable QUIC v29 and earlier. Protected by FLAGS_quic_disable_pre_30. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Fixing compile error on android. Created 4 years, 6 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/quic/quic_protocol_test.cc ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/end_to_end_test.cc
diff --git a/net/tools/quic/end_to_end_test.cc b/net/tools/quic/end_to_end_test.cc
index a92a9cc3a152aa1879b80e51c779e56e885eec8a..0bedf525150ede6ed83f31192c838f8f1fb6576e 100644
--- a/net/tools/quic/end_to_end_test.cc
+++ b/net/tools/quic/end_to_end_test.cc
@@ -209,6 +209,10 @@ vector<TestParams> GetTestParams() {
}
for (const QuicVersionVector& client_versions : version_buckets) {
+ if (client_versions.front() < QUIC_VERSION_30 &&
+ FLAGS_quic_disable_pre_30) {
+ continue;
+ }
CHECK(!client_versions.empty());
// Add an entry for server and client supporting all versions.
params.push_back(TestParams(
@@ -229,6 +233,10 @@ vector<TestParams> GetTestParams() {
// in the client. Protocol negotiation should occur. Skip the i =
// 0 case because it is essentially the same as the default case.
for (size_t i = 1; i < client_versions.size(); ++i) {
+ if (client_versions[i] < QUIC_VERSION_30 &&
+ FLAGS_quic_disable_pre_30) {
+ continue;
+ }
QuicVersionVector server_supported_versions;
server_supported_versions.push_back(client_versions[i]);
params.push_back(TestParams(
« no previous file with comments | « net/quic/quic_protocol_test.cc ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698