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

Unified Diff: net/spdy/spdy_stream_unittest.cc

Issue 2675593002: Spdy{RstStream,GoAway}Status -> SpdyErrorCode. (Closed)
Patch Set: Merged master, which includes 145087791. Created 3 years, 11 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_stream.cc ('k') | net/spdy/spdy_test_util_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_stream_unittest.cc
diff --git a/net/spdy/spdy_stream_unittest.cc b/net/spdy/spdy_stream_unittest.cc
index 495b7d40bb0c2582e18e20431944b101c7d88ee1..ad568630e2513e9b87509563647746797940a840 100644
--- a/net/spdy/spdy_stream_unittest.cc
+++ b/net/spdy/spdy_stream_unittest.cc
@@ -563,7 +563,7 @@ TEST_F(SpdyStreamTest, UpperCaseHeaders) {
AddRead(reply);
SpdySerializedFrame rst(
- spdy_util_.ConstructSpdyRstStream(1, RST_STREAM_PROTOCOL_ERROR));
+ spdy_util_.ConstructSpdyRstStream(1, ERROR_CODE_PROTOCOL_ERROR));
AddWrite(rst);
AddReadEOF();
@@ -622,7 +622,7 @@ TEST_F(SpdyStreamTest, UpperCaseHeadersOnPush) {
AddWrite(priority);
SpdySerializedFrame rst(
- spdy_util_.ConstructSpdyRstStream(2, RST_STREAM_PROTOCOL_ERROR));
+ spdy_util_.ConstructSpdyRstStream(2, ERROR_CODE_PROTOCOL_ERROR));
AddWrite(rst);
AddReadPause();
@@ -686,7 +686,7 @@ TEST_F(SpdyStreamTest, HeadersMustHaveStatus) {
AddRead(reply);
SpdySerializedFrame rst(
- spdy_util_.ConstructSpdyRstStream(1, RST_STREAM_PROTOCOL_ERROR));
+ spdy_util_.ConstructSpdyRstStream(1, ERROR_CODE_PROTOCOL_ERROR));
AddWrite(rst);
AddReadEOF();
@@ -751,7 +751,7 @@ TEST_F(SpdyStreamTest, HeadersMustHaveStatusOnPushedStream) {
AddRead(pushed_reply);
SpdySerializedFrame rst(
- spdy_util_.ConstructSpdyRstStream(2, RST_STREAM_PROTOCOL_ERROR));
+ spdy_util_.ConstructSpdyRstStream(2, ERROR_CODE_PROTOCOL_ERROR));
AddWrite(rst);
SpdySerializedFrame body(
@@ -808,7 +808,7 @@ TEST_F(SpdyStreamTest, HeadersMustPreceedData) {
AddRead(body);
SpdySerializedFrame rst(
- spdy_util_.ConstructSpdyRstStream(1, RST_STREAM_PROTOCOL_ERROR));
+ spdy_util_.ConstructSpdyRstStream(1, ERROR_CODE_PROTOCOL_ERROR));
AddWrite(rst);
AddReadEOF();
@@ -861,7 +861,7 @@ TEST_F(SpdyStreamTest, HeadersMustPreceedDataOnPushedStream) {
AddRead(pushed_body);
SpdySerializedFrame rst(
- spdy_util_.ConstructSpdyRstStream(2, RST_STREAM_PROTOCOL_ERROR));
+ spdy_util_.ConstructSpdyRstStream(2, ERROR_CODE_PROTOCOL_ERROR));
AddWrite(rst);
SpdySerializedFrame body(
@@ -931,7 +931,7 @@ TEST_F(SpdyStreamTest, TrailersMustNotFollowTrailers) {
AddRead(second_trailers);
SpdySerializedFrame rst(
- spdy_util_.ConstructSpdyRstStream(1, RST_STREAM_PROTOCOL_ERROR));
+ spdy_util_.ConstructSpdyRstStream(1, ERROR_CODE_PROTOCOL_ERROR));
AddWrite(rst);
AddReadEOF();
@@ -991,7 +991,7 @@ TEST_F(SpdyStreamTest, DataMustNotFollowTrailers) {
AddRead(body);
SpdySerializedFrame rst(
- spdy_util_.ConstructSpdyRstStream(1, RST_STREAM_PROTOCOL_ERROR));
+ spdy_util_.ConstructSpdyRstStream(1, ERROR_CODE_PROTOCOL_ERROR));
AddWrite(rst);
AddReadEOF();
@@ -1098,7 +1098,7 @@ TEST_F(SpdyStreamTest, StatusMustStartWithNumber) {
AddRead(reply);
SpdySerializedFrame rst(
- spdy_util_.ConstructSpdyRstStream(1, RST_STREAM_PROTOCOL_ERROR));
+ spdy_util_.ConstructSpdyRstStream(1, ERROR_CODE_PROTOCOL_ERROR));
AddWrite(rst);
AddReadEOF();
@@ -1203,7 +1203,7 @@ TEST_F(SpdyStreamTest, IncreaseSendWindowSizeOverflow) {
// Triggered by the overflowing call to IncreaseSendWindowSize
// below.
SpdySerializedFrame rst(
- spdy_util_.ConstructSpdyRstStream(1, RST_STREAM_FLOW_CONTROL_ERROR));
+ spdy_util_.ConstructSpdyRstStream(1, ERROR_CODE_FLOW_CONTROL_ERROR));
AddWrite(rst);
AddReadEOF();
« no previous file with comments | « net/spdy/spdy_stream.cc ('k') | net/spdy/spdy_test_util_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698