summaryrefslogtreecommitdiffstats
path: root/net/quic/quic_http_stream_test.cc
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-16 20:20:17 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-16 20:20:17 +0000
commit821555cdd065b00e835bd6958586089e81ab17a7 (patch)
tree3499822259cf0a199c480d83bbf84120d8b526d3 /net/quic/quic_http_stream_test.cc
parent24b25a46b442d29cc4b1b1a0c04e82d8db4d51f6 (diff)
downloadchromium_src-821555cdd065b00e835bd6958586089e81ab17a7.zip
chromium_src-821555cdd065b00e835bd6958586089e81ab17a7.tar.gz
chromium_src-821555cdd065b00e835bd6958586089e81ab17a7.tar.bz2
Actually implement header compression for quic streams.
R=rtenneti@chromium.org Review URL: https://codereview.chromium.org/15042010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200617 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/quic/quic_http_stream_test.cc')
-rw-r--r--net/quic/quic_http_stream_test.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/net/quic/quic_http_stream_test.cc b/net/quic/quic_http_stream_test.cc
index ff82ab4..1c10cdb 100644
--- a/net/quic/quic_http_stream_test.cc
+++ b/net/quic/quic_http_stream_test.cc
@@ -205,15 +205,12 @@ class QuicHttpStreamTest : public ::testing::TestWithParam<bool> {
headers[":status"] = status;
headers[":version"] = "HTTP/1.1";
headers["content-type"] = "text/plain";
- response_data_ = session_->compressor()->CompressHeaders(headers) + body;
+ response_data_ = SerializeHeaderBlock(headers) + body;
}
std::string SerializeHeaderBlock(const SpdyHeaderBlock& headers) {
- size_t len = SpdyFramer::GetSerializedLength(3, &headers);
- SpdyFrameBuilder builder(len);
- SpdyFramer::WriteHeaderBlock(&builder, 3, &headers);
- scoped_ptr<SpdyFrame> frame(builder.take());
- return std::string(frame->data(), len);
+ QuicSpdyCompressor compressor;
+ return compressor.CompressHeaders(headers);
}
// Returns a newly created packet to send kData on stream 1.