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

Unified Diff: content/public/test/render_view_fake_resources_test.cc

Issue 10911297: Modify AsyncResourceHandler to use a single shared memory buffer (in ring (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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/public/test/render_view_fake_resources_test.cc
===================================================================
--- content/public/test/render_view_fake_resources_test.cc (revision 157294)
+++ content/public/test/render_view_fake_resources_test.cc (working copy)
@@ -168,10 +168,17 @@
base::SharedMemoryHandle handle;
ASSERT_TRUE(shared_memory.GiveToProcess(base::Process::Current().handle(),
&handle));
+
+ ASSERT_TRUE(channel_->Send(new ResourceMsg_SetDataBuffer(
+ message.routing_id(),
+ request_id,
+ handle,
+ body.size())));
+
ASSERT_TRUE(channel_->Send(new ResourceMsg_DataReceived(
message.routing_id(),
request_id,
- handle,
+ 0,
body.size(),
body.size())));
« content/browser/renderer_host/async_resource_handler.cc ('K') | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698