summaryrefslogtreecommitdiffstats
path: root/net/quic/quic_http_stream_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/quic/quic_http_stream_test.cc')
-rw-r--r--net/quic/quic_http_stream_test.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/quic/quic_http_stream_test.cc b/net/quic/quic_http_stream_test.cc
index 3068d5f..d7fafe0 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);