| Index: net/quic/quic_http_stream_test.cc
|
| diff --git a/net/quic/quic_http_stream_test.cc b/net/quic/quic_http_stream_test.cc
|
| index 3068d5fcd4808002d815f1e18ea4c54f62f11762..d7fafe01c200450d35c0dc818f22a6df9a4350b4 100644
|
| --- a/net/quic/quic_http_stream_test.cc
|
| +++ b/net/quic/quic_http_stream_test.cc
|
| @@ -205,7 +205,7 @@ class QuicHttpStreamTest : public ::testing::TestWithParam<bool> {
|
| headers[":status"] = status;
|
| headers[":version"] = "HTTP/1.1";
|
| headers["content-type"] = "text/plain";
|
| - response_data_ = SerializeHeaderBlock(headers) + body;
|
| + response_data_ = session_->compressor()->CompressHeaders(headers) + body;
|
| }
|
|
|
| std::string SerializeHeaderBlock(const SpdyHeaderBlock& headers) {
|
| @@ -554,10 +554,9 @@ TEST_F(QuicHttpStreamTest, DestroyedEarly) {
|
| stream_->ReadResponseHeaders(callback_.callback()));
|
|
|
| // Send the response with a body.
|
| - const char kResponseHeaders[] = "HTTP/1.1 404 OK\r\n"
|
| - "Content-Type: text/plain\r\n\r\nhello world!";
|
| + SetResponseString("404 OK", "hello world!");
|
| scoped_ptr<QuicEncryptedPacket> resp(
|
| - ConstructDataPacket(2, false, kFin, 0, kResponseHeaders));
|
| + ConstructDataPacket(2, false, kFin, 0, response_data_));
|
|
|
| // In the course of processing this packet, the QuicHttpStream close itself.
|
| ProcessPacket(*resp);
|
|
|