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

Unified Diff: net/spdy/spdy_framer_test.cc

Issue 2445113002: Add HTTP/2 error code NO_ERROR. (Closed)
Patch Set: Rebase. Created 4 years, 2 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/spdy/spdy_framer.cc ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer_test.cc
diff --git a/net/spdy/spdy_framer_test.cc b/net/spdy/spdy_framer_test.cc
index 80a165557c206e037129bee19b1876a029c4ab94..7166290325a467fc964fe85e056aaa68df20ca77 100644
--- a/net/spdy/spdy_framer_test.cc
+++ b/net/spdy/spdy_framer_test.cc
@@ -5185,7 +5185,7 @@ TEST_P(SpdyFramerTest, ErrorCodeToStringTest) {
}
TEST_P(SpdyFramerTest, StatusCodeToStringTest) {
- EXPECT_STREQ("INVALID", SpdyFramer::StatusCodeToString(RST_STREAM_INVALID));
+ EXPECT_STREQ("NO_ERROR", SpdyFramer::StatusCodeToString(RST_STREAM_NO_ERROR));
EXPECT_STREQ("PROTOCOL_ERROR",
SpdyFramer::StatusCodeToString(RST_STREAM_PROTOCOL_ERROR));
EXPECT_STREQ("INVALID_STREAM",
@@ -5868,11 +5868,11 @@ TEST_P(SpdyFramerTest, RstStreamStatusBounds) {
framer.set_visitor(&visitor);
if (IsSpdy3()) {
- EXPECT_CALL(visitor, OnRstStream(1, RST_STREAM_INVALID));
+ EXPECT_CALL(visitor, OnRstStream(1, RST_STREAM_NO_ERROR));
framer.ProcessInput(reinterpret_cast<const char*>(kV3RstStreamInvalid),
arraysize(kV3RstStreamInvalid));
} else {
- EXPECT_CALL(visitor, OnRstStream(1, RST_STREAM_INTERNAL_ERROR));
+ EXPECT_CALL(visitor, OnRstStream(1, RST_STREAM_NO_ERROR));
framer.ProcessInput(reinterpret_cast<const char*>(kH2RstStreamInvalid),
arraysize(kH2RstStreamInvalid));
}
@@ -5883,7 +5883,7 @@ TEST_P(SpdyFramerTest, RstStreamStatusBounds) {
framer.Reset();
if (IsSpdy3()) {
- EXPECT_CALL(visitor, OnRstStream(1, RST_STREAM_INVALID));
+ EXPECT_CALL(visitor, OnRstStream(1, RST_STREAM_NO_ERROR));
framer.ProcessInput(
reinterpret_cast<const char*>(kV3RstStreamNumStatusCodes),
arraysize(kV3RstStreamNumStatusCodes));
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698