| 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,
|
|
|