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

Unified Diff: net/quic/quic_protocol_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.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_protocol_test.cc
diff --git a/net/quic/quic_protocol_test.cc b/net/quic/quic_protocol_test.cc
index 393702da325dbd9e9dcacbef8197b4e959f668f4..64ac0956eee3e3a1687cab5f9282af8e5b3a3434 100644
--- a/net/quic/quic_protocol_test.cc
+++ b/net/quic/quic_protocol_test.cc
@@ -7,6 +7,7 @@
#include <sstream>
#include "base/stl_util.h"
+#include "net/quic/quic_flags.h"
#include "net/quic/quic_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -282,6 +283,17 @@ TEST(QuicProtocolTest, PathCloseFrameToString) {
EXPECT_EQ("{ path_id: 1 }\n", stream.str());
}
+TEST(QuicProtocolTest, FilterSupportedVersions) {
+ QuicVersionVector all_versions = {QUIC_VERSION_25, QUIC_VERSION_26,
+ QUIC_VERSION_27, QUIC_VERSION_29,
+ QUIC_VERSION_30};
+
+ FLAGS_quic_disable_pre_30 = true;
+ QuicVersionVector filtered_versions = FilterSupportedVersions(all_versions);
+ ASSERT_EQ(1u, filtered_versions.size());
+ EXPECT_EQ(QUIC_VERSION_30, filtered_versions[0]);
+}
+
// Tests that a queue contains the expected data after calls to Add().
TEST(PacketNumberQueueTest, AddRange) {
PacketNumberQueue queue;
« no previous file with comments | « net/quic/quic_protocol.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698