Index: net/spdy/spdy_network_transaction_unittest.cc |
diff --git a/net/spdy/spdy_network_transaction_unittest.cc b/net/spdy/spdy_network_transaction_unittest.cc |
index b418a3396bb332ae46b1e3fd0a5b1a841e54cee8..d7de25b9fc1815148bcd54293713150edecbb00c 100644 |
--- a/net/spdy/spdy_network_transaction_unittest.cc |
+++ b/net/spdy/spdy_network_transaction_unittest.cc |
@@ -2195,7 +2195,7 @@ TEST_P(SpdyNetworkTransactionTest, ResponseWithoutSynReply) { |
BoundNetLog(), GetParam(), NULL); |
helper.RunToCompletion(&data); |
TransactionHelperResult out = helper.output(); |
- EXPECT_EQ(ERR_SYN_REPLY_NOT_RECEIVED, out.rv); |
+ EXPECT_EQ(ERR_SPDY_PROTOCOL_ERROR, out.rv); |
} |
// Test that the transaction doesn't crash when we get two replies on the same |
@@ -2206,7 +2206,12 @@ TEST_P(SpdyNetworkTransactionTest, ResponseWithTwoSynReplies) { |
scoped_ptr<SpdyFrame> req( |
spdy_util_.ConstructSpdyGet(NULL, 0, false, 1, LOWEST, true)); |
- MockWrite writes[] = { CreateMockWrite(*req) }; |
+ scoped_ptr<SpdyFrame> rst( |
+ spdy_util_.ConstructSpdyRstStream(1, RST_STREAM_STREAM_IN_USE)); |
+ MockWrite writes[] = { |
+ CreateMockWrite(*req), |
+ CreateMockWrite(*rst), |
+ }; |
scoped_ptr<SpdyFrame> resp(spdy_util_.ConstructSpdyGetSynReply(NULL, 0, 1)); |
scoped_ptr<SpdyFrame> body(spdy_util_.ConstructSpdyBodyFrame(1, true)); |