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

Unified Diff: net/tools/quic/end_to_end_test.cc

Issue 1526993003: Reduce size of body data sent in Trailers test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@109916867
Patch Set: Created 5 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/end_to_end_test.cc
diff --git a/net/tools/quic/end_to_end_test.cc b/net/tools/quic/end_to_end_test.cc
index d1a3038aa63dfe27ae03b92206cd303358656417..047f7a7b9166d4f8810f727e3926e60aff7bb229 100644
--- a/net/tools/quic/end_to_end_test.cc
+++ b/net/tools/quic/end_to_end_test.cc
@@ -2146,13 +2146,12 @@ TEST_P(EndToEndTest, Trailers) {
SetReorderPercentage(30);
// Add a response with headers, body, and trailers.
- const int kBodySize = 64 * 1024; // 1 MB;
+ const string kBody = "body content";
+
SpdyHeaderBlock headers;
headers[":status"] = "200";
headers[":version"] = "HTTP/1.1";
- headers["content-length"] = IntToString(kBodySize);
-
- const string kBody = string(kBodySize, 'x');
+ headers["content-length"] = IntToString(kBody.size());
SpdyHeaderBlock trailers;
trailers["some-trailing-header"] = "trailing-header-value";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698