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

Unified Diff: mojo/public/cpp/system/tests/core_unittest.cc

Issue 1920103002: Remove MOJO_CREATE_MESSAGE_PIPE_OPTIONS_FLAG_TRANSFERABLE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/public/c/system/message_pipe.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/system/tests/core_unittest.cc
diff --git a/mojo/public/cpp/system/tests/core_unittest.cc b/mojo/public/cpp/system/tests/core_unittest.cc
index 7a52ab59a0660c591c6647c4bee68b6fc74e2f48..b500be3be763d5b46a39334285a03acb70fa5827 100644
--- a/mojo/public/cpp/system/tests/core_unittest.cc
+++ b/mojo/public/cpp/system/tests/core_unittest.cc
@@ -365,10 +365,7 @@ TEST(CoreCppTest, TearDownWithMessagesEnqueued) {
// Send a handle over the previously-establish message pipe.
ScopedMessagePipeHandle h2;
ScopedMessagePipeHandle h3;
- MojoCreateMessagePipeOptions options;
- options.struct_size = sizeof(MojoCreateMessagePipeOptions);
- options.flags = MOJO_CREATE_MESSAGE_PIPE_OPTIONS_FLAG_TRANSFERABLE;
- if (CreateMessagePipe(&options, &h2, &h3) != MOJO_RESULT_OK)
+ if (CreateMessagePipe(nullptr, &h2, &h3) != MOJO_RESULT_OK)
CreateMessagePipe(nullptr, &h2, &h3); // Must be old EDK.
// Write a message to |h2|, before we send |h3|.
@@ -422,10 +419,7 @@ TEST(CoreCppTest, TearDownWithMessagesEnqueued) {
// Send a handle over the previously-establish message pipe.
ScopedMessagePipeHandle h2;
ScopedMessagePipeHandle h3;
- MojoCreateMessagePipeOptions options;
- options.struct_size = sizeof(MojoCreateMessagePipeOptions);
- options.flags = MOJO_CREATE_MESSAGE_PIPE_OPTIONS_FLAG_TRANSFERABLE;
- if (CreateMessagePipe(&options, &h2, &h3) != MOJO_RESULT_OK)
+ if (CreateMessagePipe(nullptr, &h2, &h3) != MOJO_RESULT_OK)
CreateMessagePipe(nullptr, &h2, &h3); // Must be old EDK.
// Write a message to |h2|, before we send |h3|.
« no previous file with comments | « mojo/public/c/system/message_pipe.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698