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

Unified Diff: mojo/edk/system/message_pipe_unittest.cc

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
Index: mojo/edk/system/message_pipe_unittest.cc
diff --git a/third_party/mojo/src/mojo/edk/system/message_pipe_unittest.cc b/mojo/edk/system/message_pipe_unittest.cc
similarity index 97%
copy from third_party/mojo/src/mojo/edk/system/message_pipe_unittest.cc
copy to mojo/edk/system/message_pipe_unittest.cc
index 52ace8046b458aa944384ec2fb19822cc1db6397..0866c82629e18e4fc56fe5a2556cae863ccdffbd 100644
--- a/third_party/mojo/src/mojo/edk/system/message_pipe_unittest.cc
+++ b/mojo/edk/system/message_pipe_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mojo/edk/system/message_pipe.h"
+//#include "mojo/edk/system/message_pipe.h"
#include "base/memory/ref_counted.h"
#include "mojo/edk/system/waiter.h"
@@ -13,6 +13,17 @@ namespace mojo {
namespace system {
namespace {
+static const char kHelloWorld[] = "hello world";
+/* jam embedder_unittest has similar.. look at Basic
+TEST(MessagePipeTest, WriteData) {
+ MojoHandle pipe1, pipe2;
+ ASSERT_EQ(MOJO_RESULT_OK, MojoCreateMessagePipe(nullptr, &pipe1, &pipe2));
+ ASSERT_EQ(MOJO_RESULT_OK,
+ MojoWriteMessage(pipe1, kHelloWorld, sizeof(kHelloWorld), nullptr,
+ 0, MOJO_WRITE_MESSAGE_FLAG_NONE));
+}
+*/
+/*
const MojoHandleSignals kAllSignals = MOJO_HANDLE_SIGNAL_READABLE |
MOJO_HANDLE_SIGNAL_WRITABLE |
MOJO_HANDLE_SIGNAL_PEER_CLOSED;
@@ -566,7 +577,7 @@ TEST(MessagePipeTest, ThreadedWaiting) {
EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION, result);
EXPECT_EQ(4u, context);
}
-
+*/
} // namespace
} // namespace system
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698