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

Unified Diff: trunk/src/net/quic/quic_http_stream_test.cc

Issue 15018013: Revert 198736 "Land Recent QUIC changes" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 | « trunk/src/net/quic/quic_framer.cc ('k') | trunk/src/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: trunk/src/net/quic/quic_http_stream_test.cc
===================================================================
--- trunk/src/net/quic/quic_http_stream_test.cc (revision 198763)
+++ trunk/src/net/quic/quic_http_stream_test.cc (working copy)
@@ -205,7 +205,7 @@
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) {
@@ -554,9 +554,10 @@
stream_->ReadResponseHeaders(callback_.callback()));
// Send the response with a body.
- SetResponseString("404 OK", "hello world!");
+ const char kResponseHeaders[] = "HTTP/1.1 404 OK\r\n"
+ "Content-Type: text/plain\r\n\r\nhello world!";
scoped_ptr<QuicEncryptedPacket> resp(
- ConstructDataPacket(2, false, kFin, 0, response_data_));
+ ConstructDataPacket(2, false, kFin, 0, kResponseHeaders));
// In the course of processing this packet, the QuicHttpStream close itself.
ProcessPacket(*resp);
« no previous file with comments | « trunk/src/net/quic/quic_framer.cc ('k') | trunk/src/net/quic/quic_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698