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

Unified Diff: base/memory/shared_memory_mac_unittest.cc

Issue 2849243002: Get rid of all pid references from base::SharedMemoryHandle. (Closed)
Patch Set: fix invalid handle Chrome IPC. 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
« no previous file with comments | « base/memory/shared_memory_mac.cc ('k') | base/memory/shared_memory_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/shared_memory_mac_unittest.cc
diff --git a/base/memory/shared_memory_mac_unittest.cc b/base/memory/shared_memory_mac_unittest.cc
index 8a6f110215b0516edf7ee7a6b9d45daeba4deb90..bfb0368da666f6d8936a0c1ddced5a0db5bd12be 100644
--- a/base/memory/shared_memory_mac_unittest.cc
+++ b/base/memory/shared_memory_mac_unittest.cc
@@ -247,8 +247,7 @@ MULTIPROCESS_TEST_MAIN(MachBasedSharedMemoryClient) {
// The next mach port should be for a memory object.
mach_port_t memory_object = ReceiveMachPort(client_port.get());
SharedMemoryHandle shm(memory_object,
- SharedMemoryMacMultiProcessTest::s_memory_size,
- GetCurrentProcId());
+ SharedMemoryMacMultiProcessTest::s_memory_size);
SharedMemory shared_memory(shm, false);
shared_memory.Map(SharedMemoryMacMultiProcessTest::s_memory_size);
const char* start = static_cast<const char*>(shared_memory.memory());
@@ -287,8 +286,7 @@ MULTIPROCESS_TEST_MAIN(MachBasedSharedMemoryWithOffsetClient) {
// The next mach port should be for a memory object.
mach_port_t memory_object = ReceiveMachPort(client_port.get());
SharedMemoryHandle shm(memory_object,
- SharedMemoryMacMultiProcessTest::s_memory_size,
- GetCurrentProcId());
+ SharedMemoryMacMultiProcessTest::s_memory_size);
SharedMemory shared_memory(shm, false);
size_t page_size = SysInfo::VMAllocationGranularity();
shared_memory.MapAt(page_size, 2 * page_size);
« no previous file with comments | « base/memory/shared_memory_mac.cc ('k') | base/memory/shared_memory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698