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

Unified Diff: content/child/resource_dispatcher_unittest.cc

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Compile error. Created 3 years, 8 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/child/resource_dispatcher_unittest.cc
diff --git a/content/child/resource_dispatcher_unittest.cc b/content/child/resource_dispatcher_unittest.cc
index 55d2fd0d302af90f6a08bed70db995d656f9c988..09b4de997d1611b1c5344461bd0f30ae5221f153 100644
--- a/content/child/resource_dispatcher_unittest.cc
+++ b/content/child/resource_dispatcher_unittest.cc
@@ -167,9 +167,9 @@ class ResourceDispatcherTest : public testing::Test, public IPC::Sender {
shared_memory_map_[request_id] = base::WrapUnique(shared_memory);
EXPECT_TRUE(shared_memory->CreateAndMapAnonymous(buffer_size));
- base::SharedMemoryHandle duplicate_handle;
- EXPECT_TRUE(shared_memory->ShareToProcess(base::GetCurrentProcessHandle(),
- &duplicate_handle));
+ base::SharedMemoryHandle duplicate_handle =
+ shared_memory->handle().Duplicate();
+ EXPECT_TRUE(duplicate_handle.IsValid());
EXPECT_TRUE(dispatcher_->OnMessageReceived(ResourceMsg_SetDataBuffer(
request_id, duplicate_handle, shared_memory->requested_size(), 0)));
}
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/common/sandbox_mac_fontloading_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698