Chromium Code Reviews| 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 46f0500fd1d46950ad40e5606137e1a7db6d71a7..a35f5f5fd2212cc12fefcf433ffc67d9b9aeabe2 100644 |
| --- a/net/spdy/spdy_network_transaction_unittest.cc |
| +++ b/net/spdy/spdy_network_transaction_unittest.cc |
| @@ -5338,6 +5338,8 @@ TEST_P(SpdyNetworkTransactionTest, ServerPushClaimBeforeHeaders) { |
| EXPECT_TRUE(data.at_write_eof()); |
| } |
| + |
| +// TODO(baranovich): HTTP 2 does not allow multiple HEADERS frames |
|
Johnny
2014/06/05 02:56:04
This isn't quite right. There's no restriction on
baranovich
2014/06/05 19:16:57
http://tools.ietf.org/html/draft-ietf-httpbis-http
|
| TEST_P(SpdyNetworkTransactionTest, ServerPushWithTwoHeaderFrames) { |
| // We push a stream and attempt to claim it before the headers come down. |
| scoped_ptr<SpdyFrame> stream1_syn( |
| @@ -5465,24 +5467,7 @@ TEST_P(SpdyNetworkTransactionTest, ServerPushWithTwoHeaderFrames) { |
| EXPECT_TRUE(response2.headers.get() != NULL); |
| EXPECT_EQ("HTTP/1.1 200 OK", response2.headers->GetStatusLine()); |
| - // Verify we got all the headers |
| - if (spdy_util_.spdy_version() < SPDY3) { |
| - EXPECT_TRUE(response2.headers->HasHeaderValue( |
| - "url", |
| - "http://www.google.com/foo.dat")); |
| - } else { |
| - EXPECT_TRUE(response2.headers->HasHeaderValue( |
| - "scheme", "http")); |
| - EXPECT_TRUE(response2.headers->HasHeaderValue( |
| - "path", "/foo.dat")); |
| - if (spdy_util_.spdy_version() < SPDY4) { |
| - EXPECT_TRUE(response2.headers->HasHeaderValue( |
| - "host", "www.google.com")); |
| - } else { |
| - EXPECT_TRUE(response2.headers->HasHeaderValue( |
| - "authority", "www.google.com")); |
| - } |
| - } |
| + // Verify we got all the headers from both header blocks. |
|
Johnny
2014/06/05 02:56:04
Expose and verify request headers on the transacti
baranovich
2014/06/05 19:16:57
I'm not quite sure what and how should be checked
|
| EXPECT_TRUE(response2.headers->HasHeaderValue("hello", "bye")); |
| EXPECT_TRUE(response2.headers->HasHeaderValue("status", "200")); |