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

Unified Diff: mojo/system/message_pipe_unittest.cc

Issue 60103005: Mojo: First stab at making MessagePipes work across OS pipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 1 month 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/system/message_pipe_unittest.cc
diff --git a/mojo/system/message_pipe_unittest.cc b/mojo/system/message_pipe_unittest.cc
index d26db7470113050e80cc42490bc6debb7b7ccb79..cf0d6a2c5e7ed7c19b905b6c4bc3e17f9818d659 100644
--- a/mojo/system/message_pipe_unittest.cc
+++ b/mojo/system/message_pipe_unittest.cc
@@ -195,9 +195,9 @@ TEST(MessagePipeTest, Basic) {
EXPECT_EQ(345678901, buffer[0]);
EXPECT_EQ(456, buffer[1]);
- // Read again from port 1 -- it should be empty.
+ // Read again from port 1 -- it should be empty (and port 0 is closed).
buffer_size = kBufferSize;
- EXPECT_EQ(MOJO_RESULT_NOT_FOUND,
+ EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION,
mp->ReadMessage(1,
buffer, &buffer_size,
NULL, NULL,

Powered by Google App Engine
This is Rietveld 408576698