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

Unified Diff: mojo/edk/embedder/platform_shared_buffer_unittest.cc

Issue 1890023002: Revert of mac: Remove POSIX shared memory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp50_base
Patch Set: Created 4 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 | « mojo/edk/embedder/platform_shared_buffer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/platform_shared_buffer_unittest.cc
diff --git a/mojo/edk/embedder/platform_shared_buffer_unittest.cc b/mojo/edk/embedder/platform_shared_buffer_unittest.cc
index 315f7ea78fccea75e2e132c950adb8eb5b700d2c..098ff26a8160750a48fa6aac76dccfcee0574cf0 100644
--- a/mojo/edk/embedder/platform_shared_buffer_unittest.cc
+++ b/mojo/edk/embedder/platform_shared_buffer_unittest.cc
@@ -194,6 +194,9 @@
const size_t kBufferSize = 1234;
base::SharedMemoryCreateOptions options;
options.size = kBufferSize;
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+ options.type = base::SharedMemoryHandle::POSIX;
+#endif
base::SharedMemory shared_memory;
ASSERT_TRUE(shared_memory.Create(options));
ASSERT_TRUE(shared_memory.Map(kBufferSize));
« no previous file with comments | « mojo/edk/embedder/platform_shared_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698