| 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 b3ebea2d202a1f1f4ffde43b8c370997e8b76168..c717c2f205be257c69d73273ee93168d553a2d0d 100644
|
| --- a/mojo/public/cpp/system/tests/core_unittest.cc
|
| +++ b/mojo/public/cpp/system/tests/core_unittest.cc
|
| @@ -365,8 +365,12 @@ TEST(CoreCppTest, TearDownWithMessagesEnqueued) {
|
|
|
| // Send a handle over the previously-establish message pipe.
|
| ScopedMessagePipeHandle h2;
|
| - ScopedMessagePipeHandle h3;
|
| - CreateMessagePipe(nullptr, &h2, &h3);
|
| + 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)
|
| + CreateMessagePipe(nullptr, &h2, &h3); // Must be old EDK.
|
|
|
| // Write a message to |h2|, before we send |h3|.
|
| const char kWorld[] = "world!";
|
| @@ -418,8 +422,12 @@ TEST(CoreCppTest, TearDownWithMessagesEnqueued) {
|
|
|
| // Send a handle over the previously-establish message pipe.
|
| ScopedMessagePipeHandle h2;
|
| - ScopedMessagePipeHandle h3;
|
| - CreateMessagePipe(nullptr, &h2, &h3);
|
| + 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)
|
| + CreateMessagePipe(nullptr, &h2, &h3); // Must be old EDK.
|
|
|
| // Write a message to |h2|, before we send |h3|.
|
| const char kWorld[] = "world!";
|
|
|