Index: base/memory/shared_memory_unittest.cc |
diff --git a/base/memory/shared_memory_unittest.cc b/base/memory/shared_memory_unittest.cc |
index 226c5a7928156b0868037685fe36fefed5ddae59..152b69bbd84fda2ba9f83fc486a90095ff24ef4f 100644 |
--- a/base/memory/shared_memory_unittest.cc |
+++ b/base/memory/shared_memory_unittest.cc |
@@ -411,6 +411,9 @@ TEST(SharedMemoryTest, ShareToSelf) { |
SharedMemoryHandle shared_handle; |
ASSERT_TRUE(shmem.ShareToProcess(GetCurrentProcessHandle(), &shared_handle)); |
+#if defined(OS_WIN) |
+ ASSERT_TRUE(shared_handle.OwnershipPassesToIPC()); |
+#endif |
SharedMemory shared(shared_handle, /*readonly=*/false); |
ASSERT_TRUE(shared.Map(contents.size())); |
@@ -420,6 +423,9 @@ TEST(SharedMemoryTest, ShareToSelf) { |
shared_handle = SharedMemoryHandle(); |
ASSERT_TRUE(shmem.ShareToProcess(GetCurrentProcessHandle(), &shared_handle)); |
+#if defined(OS_WIN) |
+ ASSERT_TRUE(shared_handle.OwnershipPassesToIPC()); |
+#endif |
SharedMemory readonly(shared_handle, /*readonly=*/true); |
ASSERT_TRUE(readonly.Map(contents.size())); |