| Index: content/child/web_url_loader_impl_unittest.cc
|
| diff --git a/content/child/web_url_loader_impl_unittest.cc b/content/child/web_url_loader_impl_unittest.cc
|
| index 395a663d95722ce40446b0535c8cd8900d4d8f5b..7a48565e315a99ad313fcb7fa33469c099d0e2cd 100644
|
| --- a/content/child/web_url_loader_impl_unittest.cc
|
| +++ b/content/child/web_url_loader_impl_unittest.cc
|
| @@ -5,7 +5,6 @@
|
| #include "content/child/web_url_loader_impl.h"
|
|
|
| #include <string.h>
|
| -#include <vector>
|
|
|
| #include "base/command_line.h"
|
| #include "base/macros.h"
|
| @@ -16,7 +15,6 @@
|
| #include "content/child/request_extra_data.h"
|
| #include "content/child/request_info.h"
|
| #include "content/child/resource_dispatcher.h"
|
| -#include "content/public/child/fixed_received_data.h"
|
| #include "content/public/child/request_peer.h"
|
| #include "content/public/common/content_switches.h"
|
| #include "content/public/common/resource_response_info.h"
|
| @@ -287,8 +285,7 @@
|
| // Assumes it is called only once for a request.
|
| void DoReceiveData() {
|
| EXPECT_EQ("", client()->received_data());
|
| - peer()->OnReceivedData(make_scoped_ptr(new FixedReceivedData(
|
| - kTestData, strlen(kTestData), strlen(kTestData))));
|
| + peer()->OnReceivedData(kTestData, strlen(kTestData), strlen(kTestData));
|
| EXPECT_EQ(kTestData, client()->received_data());
|
| }
|
|
|
| @@ -320,8 +317,8 @@
|
| }
|
|
|
| void DoReceiveDataFtp() {
|
| - peer()->OnReceivedData(make_scoped_ptr(new FixedReceivedData(
|
| - kFtpDirListing, strlen(kFtpDirListing), strlen(kFtpDirListing))));
|
| + peer()->OnReceivedData(kFtpDirListing, strlen(kFtpDirListing),
|
| + strlen(kFtpDirListing));
|
| // The FTP delegate should modify the data the client sees.
|
| EXPECT_NE(kFtpDirListing, client()->received_data());
|
| }
|
| @@ -338,9 +335,8 @@
|
| }
|
|
|
| void DoReceiveDataMultipart() {
|
| - peer()->OnReceivedData(make_scoped_ptr(
|
| - new FixedReceivedData(kMultipartResponse, strlen(kMultipartResponse),
|
| - strlen(kMultipartResponse))));
|
| + peer()->OnReceivedData(kMultipartResponse, strlen(kMultipartResponse),
|
| + strlen(kMultipartResponse));
|
| // Multipart delegate should modify the data the client sees.
|
| EXPECT_NE(kMultipartResponse, client()->received_data());
|
| }
|
|
|