Index: mojo/edk/system/core_unittest.cc |
diff --git a/mojo/edk/system/core_unittest.cc b/mojo/edk/system/core_unittest.cc |
index 33a7068f0d5bf3fb99e6ea7c037b3f899ac94c0c..814ce4bc3c955b3d6eb2f059eb60ef1a195c061d 100644 |
--- a/mojo/edk/system/core_unittest.cc |
+++ b/mojo/edk/system/core_unittest.cc |
@@ -846,14 +846,16 @@ TEST_F(CoreTest, DataPipe) { |
MOJO_RESULT_FAILED_PRECONDITION, |
core()->Wait(ch, MOJO_HANDLE_SIGNAL_WRITABLE, 0, &hss)); |
ASSERT_EQ(0u, hss.satisfied_signals); |
- ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED, |
+ EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | |
+ MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, |
hss.satisfiable_signals); |
hss = kFullMojoHandleSignalsState; |
ASSERT_EQ( |
MOJO_RESULT_DEADLINE_EXCEEDED, |
core()->Wait(ch, MOJO_HANDLE_SIGNAL_READABLE, 0, &hss)); |
ASSERT_EQ(0u, hss.satisfied_signals); |
- ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED, |
+ EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | |
+ MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, |
hss.satisfiable_signals); |
// Write. |
@@ -872,8 +874,10 @@ TEST_F(CoreTest, DataPipe) { |
hss = kEmptyMojoHandleSignalsState; |
ASSERT_EQ(MOJO_RESULT_OK, core()->Wait(ch, MOJO_HANDLE_SIGNAL_READABLE, 0, |
&hss)); |
- ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE, hss.satisfied_signals); |
- ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED, |
+ EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, |
+ hss.satisfied_signals); |
+ EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | |
+ MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, |
hss.satisfiable_signals); |
// Peek one character. |
@@ -994,8 +998,9 @@ TEST_F(CoreTest, DataPipe) { |
ASSERT_EQ( |
MOJO_RESULT_DEADLINE_EXCEEDED, |
core()->Wait(ch, MOJO_HANDLE_SIGNAL_READABLE, 0, &hss)); |
- ASSERT_EQ(0u, hss.satisfied_signals); |
- ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED, |
+ EXPECT_EQ(0u, hss.satisfied_signals); |
+ EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | |
+ MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, |
hss.satisfiable_signals); |
// TODO(vtl): More. |
@@ -1081,8 +1086,10 @@ TEST_F(CoreTest, MessagePipeBasicLocalHandlePassing2) { |
ASSERT_EQ(MOJO_RESULT_OK, |
core()->Wait(ch_received, MOJO_HANDLE_SIGNAL_READABLE, 1000000000, |
&hss)); |
- ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE, hss.satisfied_signals); |
- ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED, |
+ EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, |
+ hss.satisfied_signals); |
+ EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | |
+ MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, |
hss.satisfiable_signals); |
num_bytes = kBufferSize; |
ASSERT_EQ(MOJO_RESULT_OK, |
@@ -1133,8 +1140,10 @@ TEST_F(CoreTest, MessagePipeBasicLocalHandlePassing2) { |
ASSERT_EQ(MOJO_RESULT_OK, |
core()->Wait(ch_received, MOJO_HANDLE_SIGNAL_READABLE, 1000000000, |
&hss)); |
- ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE, hss.satisfied_signals); |
- ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED, |
+ EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, |
+ hss.satisfied_signals); |
+ EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | |
+ MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, |
hss.satisfiable_signals); |
num_bytes = kBufferSize; |
ASSERT_EQ(MOJO_RESULT_OK, |
@@ -1187,8 +1196,10 @@ TEST_F(CoreTest, MessagePipeBasicLocalHandlePassing2) { |
hss = kEmptyMojoHandleSignalsState; |
ASSERT_EQ(MOJO_RESULT_OK, core()->Wait(ch, MOJO_HANDLE_SIGNAL_READABLE, |
1000000000, &hss)); |
- ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE, hss.satisfied_signals); |
- ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED, |
+ EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, |
+ hss.satisfied_signals); |
+ EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | |
+ MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, |
hss.satisfiable_signals); |
// Make sure that |ch| can't be sent if it's in a two-phase read. |