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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host_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: Fix ASAN 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
Index: content/browser/renderer_host/resource_dispatcher_host_unittest.cc
diff --git a/content/browser/renderer_host/resource_dispatcher_host_unittest.cc b/content/browser/renderer_host/resource_dispatcher_host_unittest.cc
index 513e140a39b2ede45be0bb2d1836b966ae71da3b..437b611572bac8ff4f176dbffb7ac4efab6c5032 100644
--- a/content/browser/renderer_host/resource_dispatcher_host_unittest.cc
+++ b/content/browser/renderer_host/resource_dispatcher_host_unittest.cc
@@ -1291,7 +1291,9 @@ TEST_F(ResourceDispatcherHostTest, CalculateApproximateMemoryCost) {
std::string upload_content;
upload_content.resize(33);
std::fill(upload_content.begin(), upload_content.end(), 'x');
- req.AppendBytesToUpload(upload_content.data(), upload_content.size());
+ scoped_refptr<net::UploadData> upload_data(new net::UploadData());
+ upload_data->AppendBytes(upload_content.data(), upload_content.size());
+ req.set_upload(upload_data);
// Since the upload throttling is disabled, this has no effect on the cost.
EXPECT_EQ(4436,

Powered by Google App Engine
This is Rietveld 408576698