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

Unified Diff: net/quic/quic_utils_test.cc

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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_utils.cc ('k') | net/quic/test_tools/crypto_test_utils_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_utils_test.cc
diff --git a/net/quic/quic_utils_test.cc b/net/quic/quic_utils_test.cc
index b7d23eda97a16ea54f7408d3557b0fc2740f2ee1..d2f2631343cbd2829f5432e6f730b51b894a2e10 100644
--- a/net/quic/quic_utils_test.cc
+++ b/net/quic/quic_utils_test.cc
@@ -84,6 +84,20 @@ TEST(QuicUtilsTest, TagToString) {
QuicUtils::TagToString(MakeQuicTag('C', 'H', 'L', '\x1f')));
}
+TEST(QuicUtilsTest, ParseQuicConnectionOptions) {
+ QuicTagVector empty_options = QuicUtils::ParseQuicConnectionOptions("");
+ EXPECT_EQ(0ul, empty_options.size());
+
+ QuicTagVector parsed_options = QuicUtils::ParseQuicConnectionOptions(
+ "PACE,TIMER,TBBR,REJ");
+ QuicTagVector expected_options;
+ expected_options.push_back(net::kPACE);
+ expected_options.push_back(net::kTIME);
+ expected_options.push_back(net::kTBBR);
+ expected_options.push_back(net::kREJ);
+ EXPECT_EQ(expected_options, parsed_options);
+}
+
} // namespace
} // namespace test
} // namespace net
« no previous file with comments | « net/quic/quic_utils.cc ('k') | net/quic/test_tools/crypto_test_utils_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698