Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2243)

Unified Diff: net/quic/quic_http_stream_test.cc

Issue 14651009: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix integer constant is too large for 'unsigned long' type Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_framer.cc ('k') | net/quic/quic_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « net/quic/quic_framer.cc ('k') | net/quic/quic_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698