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

Unified Diff: net/spdy/spdy_stream_spdy3_unittest.cc

Issue 9958023: Properly handle spdy3 responses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 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_spdy2_unittest.cc ('k') | net/spdy/spdy_test_util_spdy3.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_stream_spdy3_unittest.cc
diff --git a/net/spdy/spdy_stream_spdy3_unittest.cc b/net/spdy/spdy_stream_spdy3_unittest.cc
index 37235d9550a75368c657d7174459a2075893ec2e..56af9e02f2563fdfa1f5805732f81c53697d40a8 100644
--- a/net/spdy/spdy_stream_spdy3_unittest.cc
+++ b/net/spdy/spdy_stream_spdy3_unittest.cc
@@ -235,8 +235,8 @@ TEST_F(SpdyStreamSpdy3Test, SendDataAfterOpen) {
EXPECT_EQ(OK, callback.WaitForResult());
EXPECT_TRUE(delegate->send_headers_completed());
- EXPECT_EQ("200", (*delegate->response())["status"]);
- EXPECT_EQ("HTTP/1.1", (*delegate->response())["version"]);
+ EXPECT_EQ("200", (*delegate->response())[":status"]);
+ EXPECT_EQ("HTTP/1.1", (*delegate->response())[":version"]);
EXPECT_EQ(std::string("\0hello!\xff", 8), delegate->received_data());
EXPECT_EQ(8, delegate->data_sent());
EXPECT_TRUE(delegate->closed());
@@ -291,8 +291,8 @@ TEST_F(SpdyStreamSpdy3Test, PushedStream) {
// Send some basic headers.
SpdyHeaderBlock headers;
- response["status"] = "200";
- response["version"] = "OK";
+ response[":status"] = "200";
+ response[":version"] = "OK";
stream->OnHeaders(headers);
stream->set_response_received();
@@ -414,8 +414,8 @@ TEST_F(SpdyStreamSpdy3Test, StreamError) {
EXPECT_EQ(OK, callback.WaitForResult());
EXPECT_TRUE(delegate->send_headers_completed());
- EXPECT_EQ("200", (*delegate->response())["status"]);
- EXPECT_EQ("HTTP/1.1", (*delegate->response())["version"]);
+ EXPECT_EQ("200", (*delegate->response())[":status"]);
+ EXPECT_EQ("HTTP/1.1", (*delegate->response())[":version"]);
EXPECT_EQ(std::string("\0hello!\xff", 8), delegate->received_data());
EXPECT_EQ(8, delegate->data_sent());
EXPECT_TRUE(delegate->closed());
« no previous file with comments | « net/spdy/spdy_stream_spdy2_unittest.cc ('k') | net/spdy/spdy_test_util_spdy3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698