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

Unified Diff: net/quic/quic_spdy_stream_test.cc

Issue 2104633002: Landing recent QUIC changes until 6/24/2016 14:00 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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_spdy_stream.cc ('k') | net/quic/test_tools/crypto_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_spdy_stream_test.cc
diff --git a/net/quic/quic_spdy_stream_test.cc b/net/quic/quic_spdy_stream_test.cc
index a554181dbbc2b9875162ccc86cf7fa8655ecc92a..d08ff4145f7bbaa83a05e43cbfddc8c46dca0054 100644
--- a/net/quic/quic_spdy_stream_test.cc
+++ b/net/quic/quic_spdy_stream_test.cc
@@ -199,40 +199,40 @@ TEST_P(QuicSpdyStreamTest, ParseHeaderStatusCode) {
// Valid status code.
headers_.ReplaceOrAppendHeader(":status", "404");
- EXPECT_TRUE(stream_->ParseHeaderStatusCode(&headers_, &status_code));
+ EXPECT_TRUE(stream_->ParseHeaderStatusCode(headers_, &status_code));
EXPECT_EQ(404, status_code);
// Invalid status codes.
headers_.ReplaceOrAppendHeader(":status", "010");
- EXPECT_FALSE(stream_->ParseHeaderStatusCode(&headers_, &status_code));
+ EXPECT_FALSE(stream_->ParseHeaderStatusCode(headers_, &status_code));
headers_.ReplaceOrAppendHeader(":status", "600");
- EXPECT_FALSE(stream_->ParseHeaderStatusCode(&headers_, &status_code));
+ EXPECT_FALSE(stream_->ParseHeaderStatusCode(headers_, &status_code));
headers_.ReplaceOrAppendHeader(":status", "200 ok");
- EXPECT_FALSE(stream_->ParseHeaderStatusCode(&headers_, &status_code));
+ EXPECT_FALSE(stream_->ParseHeaderStatusCode(headers_, &status_code));
headers_.ReplaceOrAppendHeader(":status", "2000");
- EXPECT_FALSE(stream_->ParseHeaderStatusCode(&headers_, &status_code));
+ EXPECT_FALSE(stream_->ParseHeaderStatusCode(headers_, &status_code));
headers_.ReplaceOrAppendHeader(":status", "+200");
- EXPECT_FALSE(stream_->ParseHeaderStatusCode(&headers_, &status_code));
+ EXPECT_FALSE(stream_->ParseHeaderStatusCode(headers_, &status_code));
headers_.ReplaceOrAppendHeader(":status", "+20");
- EXPECT_FALSE(stream_->ParseHeaderStatusCode(&headers_, &status_code));
+ EXPECT_FALSE(stream_->ParseHeaderStatusCode(headers_, &status_code));
// Leading or trailing spaces are also invalid.
headers_.ReplaceOrAppendHeader(":status", " 200");
- EXPECT_FALSE(stream_->ParseHeaderStatusCode(&headers_, &status_code));
+ EXPECT_FALSE(stream_->ParseHeaderStatusCode(headers_, &status_code));
headers_.ReplaceOrAppendHeader(":status", "200 ");
- EXPECT_FALSE(stream_->ParseHeaderStatusCode(&headers_, &status_code));
+ EXPECT_FALSE(stream_->ParseHeaderStatusCode(headers_, &status_code));
headers_.ReplaceOrAppendHeader(":status", " 200 ");
- EXPECT_FALSE(stream_->ParseHeaderStatusCode(&headers_, &status_code));
+ EXPECT_FALSE(stream_->ParseHeaderStatusCode(headers_, &status_code));
headers_.ReplaceOrAppendHeader(":status", " ");
- EXPECT_FALSE(stream_->ParseHeaderStatusCode(&headers_, &status_code));
+ EXPECT_FALSE(stream_->ParseHeaderStatusCode(headers_, &status_code));
}
TEST_P(QuicSpdyStreamTest, MarkHeadersConsumed) {
« no previous file with comments | « net/quic/quic_spdy_stream.cc ('k') | net/quic/test_tools/crypto_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698