summaryrefslogtreecommitdiffstats
path: root/content/child/resource_dispatcher_unittest.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-06 19:24:05 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-06 19:24:05 +0000
commitf465319aff0eac96b84b4f4754738b97a1c2dfed (patch)
treed7d4b376f8b808974001fa1aacf3ba6f28afd705 /content/child/resource_dispatcher_unittest.cc
parentb926d6a87c7f9438d9c2b6a6eca638b52427737f (diff)
downloadchromium_src-f465319aff0eac96b84b4f4754738b97a1c2dfed.zip
chromium_src-f465319aff0eac96b84b4f4754738b97a1c2dfed.tar.gz
chromium_src-f465319aff0eac96b84b4f4754738b97a1c2dfed.tar.bz2
Convert a bunch of resource IPCs to be control messages. They didn't need to be routed.
BUG=286074 R=ajwong@chromium.org Review URL: https://codereview.chromium.org/23583039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221751 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/child/resource_dispatcher_unittest.cc')
-rw-r--r--content/child/resource_dispatcher_unittest.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/content/child/resource_dispatcher_unittest.cc b/content/child/resource_dispatcher_unittest.cc
index 817bf91..b072ecf 100644
--- a/content/child/resource_dispatcher_unittest.cc
+++ b/content/child/resource_dispatcher_unittest.cc
@@ -134,10 +134,9 @@ class ResourceDispatcherTest : public testing::Test, public IPC::Sender {
base::SharedMemoryHandle dup_handle;
EXPECT_TRUE(shared_mem.GiveToProcess(
base::Process::Current().handle(), &dup_handle));
- dispatcher_->OnSetDataBuffer(message_queue_[0], request_id, dup_handle,
+ dispatcher_->OnSetDataBuffer(request_id, dup_handle,
test_page_contents_len, 0);
- dispatcher_->OnReceivedData(message_queue_[0], request_id, 0,
- test_page_contents_len,
+ dispatcher_->OnReceivedData(request_id, 0, test_page_contents_len,
test_page_contents_len);
message_queue_.erase(message_queue_.begin());
@@ -251,7 +250,7 @@ class DeferredResourceLoadingTest : public ResourceDispatcherTest,
response_head.error_code = net::OK;
dispatcher_->OnMessageReceived(
- ResourceMsg_ReceivedResponse(0, 0, response_head));
+ ResourceMsg_ReceivedResponse(0, response_head));
// Duplicate the shared memory handle so both the test and the callee can
// close their copy.
@@ -260,9 +259,8 @@ class DeferredResourceLoadingTest : public ResourceDispatcherTest,
&duplicated_handle));
dispatcher_->OnMessageReceived(
- ResourceMsg_SetDataBuffer(0, 0, duplicated_handle, 100, 0));
- dispatcher_->OnMessageReceived(
- ResourceMsg_DataReceived(0, 0, 0, 100, 100));
+ ResourceMsg_SetDataBuffer(0, duplicated_handle, 100, 0));
+ dispatcher_->OnMessageReceived(ResourceMsg_DataReceived(0, 0, 100, 100));
set_defer_loading(false);
}
@@ -355,7 +353,7 @@ class TimeConversionTest : public ResourceDispatcherTest,
bridge->Start(this);
dispatcher_->OnMessageReceived(
- ResourceMsg_ReceivedResponse(0, 0, response_head));
+ ResourceMsg_ReceivedResponse(0, response_head));
}
// ResourceLoaderBridge::Peer methods.