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

Unified Diff: net/url_request/url_request_unittest.cc

Issue 11419034: net: Move ownership of UploadDataStream from URLRequestHttpJob to URLRequest (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove a local variable Created 8 years, 1 month 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_job.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 5486a9015de0e0fb808a6951814ac7ecaad10faa..c4c9ebdd37fffb99e51873d8ffa4bed495e3fbf6 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -1954,7 +1954,9 @@ class URLRequestTestHTTP : public URLRequestTest {
URLRequest r(test_server_.GetURL("echo"), &d, &default_context_);
r.set_method(method.c_str());
- r.AppendBytesToUpload(uploadBytes, kMsgSize);
+ scoped_refptr<UploadData> upload_data(new UploadData());
+ upload_data->AppendBytes(uploadBytes, kMsgSize);
+ r.set_upload(upload_data);
r.Start();
EXPECT_TRUE(r.is_pending());
« no previous file with comments | « net/url_request/url_request_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698