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

Unified Diff: content/browser/loader/upload_data_stream_builder_unittest.cc

Issue 2954343005: Merge ResourceRequestBodyImpl and ResourceRequestBody. (Closed)
Patch Set: Remove comment Created 3 years, 6 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
Index: content/browser/loader/upload_data_stream_builder_unittest.cc
diff --git a/content/browser/loader/upload_data_stream_builder_unittest.cc b/content/browser/loader/upload_data_stream_builder_unittest.cc
index 26058d75b020e8152f7ac7a58727880bb0a5247e..678cb97644b9b18bb0c2b6f124e4c0257146f976 100644
--- a/content/browser/loader/upload_data_stream_builder_unittest.cc
+++ b/content/browser/loader/upload_data_stream_builder_unittest.cc
@@ -16,7 +16,7 @@
#include "base/run_loop.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
-#include "content/common/resource_request_body_impl.h"
+#include "content/public/common/resource_request_body.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/base/test_completion_callback.h"
@@ -40,8 +40,7 @@ namespace content {
TEST(UploadDataStreamBuilderTest, CreateUploadDataStream) {
base::MessageLoop message_loop;
{
- scoped_refptr<ResourceRequestBodyImpl> request_body =
- new ResourceRequestBodyImpl;
+ scoped_refptr<ResourceRequestBody> request_body = new ResourceRequestBody;
const std::string kBlob = "blobuuid";
const std::string kBlobData = "blobdata";
@@ -119,14 +118,13 @@ TEST(UploadDataStreamBuilderTest,
std::unique_ptr<BlobDataHandle> handle =
blob_storage_context.AddFinishedBlob(blob_data_builder.get());
- scoped_refptr<ResourceRequestBodyImpl> request_body(
- new ResourceRequestBodyImpl());
+ scoped_refptr<ResourceRequestBody> request_body(new ResourceRequestBody());
std::unique_ptr<net::UploadDataStream> upload(
UploadDataStreamBuilder::Build(
request_body.get(), &blob_storage_context, NULL,
base::ThreadTaskRunnerHandle::Get().get()));
- request_body = new ResourceRequestBodyImpl();
+ request_body = new ResourceRequestBody();
request_body->AppendBlob(blob_id);
request_body->AppendBlob(blob_id);
request_body->AppendBlob(blob_id);
@@ -165,8 +163,7 @@ TEST(UploadDataStreamBuilderTest,
TEST(UploadDataStreamBuilderTest, ResetUploadStreamWithBlob) {
base::MessageLoopForIO message_loop;
{
- scoped_refptr<ResourceRequestBodyImpl> request_body =
- new ResourceRequestBodyImpl;
+ scoped_refptr<ResourceRequestBody> request_body = new ResourceRequestBody;
const std::string kBlob = "blobuuid";
const std::string kBlobData = "blobdata";
« no previous file with comments | « content/browser/loader/upload_data_stream_builder.cc ('k') | content/browser/security_exploit_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698