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

Unified Diff: net/url_request/url_request_unittest.cc

Issue 6292013: Add chunked uploads support to SPDY (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 10 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/url_request/url_request.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.cc
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index 5e03f9be25c420d7e968bf6765ec0ed1c79a6071..d0b8f582ecbcb7def053da86b7fa23134235354d 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -178,13 +178,12 @@ class URLRequestTestHTTP : public URLRequestTest {
}
void AddChunksToUpload(TestURLRequest* r) {
- r->AppendChunkToUpload("a", 1);
- r->AppendChunkToUpload("bcd", 3);
- r->AppendChunkToUpload("this is a longer chunk than before.", 35);
- r->AppendChunkToUpload("\r\n\r\n", 4);
- r->AppendChunkToUpload("0", 1);
- r->AppendChunkToUpload("2323", 4);
- r->MarkEndOfChunks();
+ r->AppendChunkToUpload("a", 1, false);
+ r->AppendChunkToUpload("bcd", 3, false);
+ r->AppendChunkToUpload("this is a longer chunk than before.", 35, false);
+ r->AppendChunkToUpload("\r\n\r\n", 4, false);
+ r->AppendChunkToUpload("0", 1, false);
+ r->AppendChunkToUpload("2323", 4, true);
}
void VerifyReceivedDataMatchesChunks(TestURLRequest* r, TestDelegate* d) {
« no previous file with comments | « net/url_request/url_request.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698