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

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

Issue 2516033003: Landing Recent QUIC changes until Mon Nov 14 04:43:50 2016 +0000 (Closed)
Patch Set: Remove unused UpdatePacketGapSentHistogram() function. Created 4 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/tools/quic/stateless_rejector.cc ('k') | net/tools/quic/test_tools/server_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/stateless_rejector_test.cc
diff --git a/net/tools/quic/stateless_rejector_test.cc b/net/tools/quic/stateless_rejector_test.cc
index a6a688c0b94628d24d47178a2244b4501417ff33..1d35fba55a51b3309554224f862dbb49da3de7d0 100644
--- a/net/tools/quic/stateless_rejector_test.cc
+++ b/net/tools/quic/stateless_rejector_test.cc
@@ -103,7 +103,7 @@ class StatelessRejectorTest : public ::testing::TestWithParam<TestParams> {
scid_hex_ = "#" + QuicUtils::HexEncode(config_peer_.GetPrimaryConfig()->id);
// Encode the QUIC version.
- ver_hex_ = QuicUtils::TagToString(QuicVersionToQuicTag(GetParam().version));
+ ver_hex_ = QuicTagToString(QuicVersionToQuicTag(GetParam().version));
// Generate a public value.
char public_value[32];
@@ -176,7 +176,7 @@ TEST_P(StatelessRejectorTest, InvalidChlo) {
rejector_->OnChlo(GetParam().version, kConnectionId,
kServerDesignateConnectionId, client_hello);
- if (GetParam().flags != ENABLED || GetParam().version <= QUIC_VERSION_32) {
+ if (GetParam().flags != ENABLED) {
EXPECT_EQ(StatelessRejector::UNSUPPORTED, rejector_->state());
return;
}
@@ -228,7 +228,7 @@ TEST_P(StatelessRejectorTest, RejectChlo) {
rejector_->OnChlo(GetParam().version, kConnectionId,
kServerDesignateConnectionId, client_hello);
- if (GetParam().flags != ENABLED || GetParam().version <= QUIC_VERSION_32) {
+ if (GetParam().flags != ENABLED) {
EXPECT_EQ(StatelessRejector::UNSUPPORTED, rejector_->state());
return;
}
@@ -274,7 +274,7 @@ TEST_P(StatelessRejectorTest, AcceptChlo) {
rejector_->OnChlo(GetParam().version, kConnectionId,
kServerDesignateConnectionId, client_hello);
- if (GetParam().flags != ENABLED || GetParam().version <= QUIC_VERSION_32) {
+ if (GetParam().flags != ENABLED) {
EXPECT_EQ(StatelessRejector::UNSUPPORTED, rejector_->state());
return;
}
« no previous file with comments | « net/tools/quic/stateless_rejector.cc ('k') | net/tools/quic/test_tools/server_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698