/external/libchrome/mojo/core/ |
D | data_pipe_unittest.cc | 181 WaitForSignals(consumer_, MOJO_HANDLE_SIGNAL_READABLE, &state)); in TEST_F() 182 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, in TEST_F() 265 WaitForSignals(consumer_, MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_F() 266 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, in TEST_F() 268 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F() 368 WaitForSignals(consumer_, MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_F() 369 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, in TEST_F() 371 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F() 490 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F() 503 WaitForSignals(consumer_, MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_F() [all …]
|
D | multiprocess_message_pipe_unittest.cc | 139 MojoResult result = WaitForSignals(h, MOJO_HANDLE_SIGNAL_READABLE, &hss); in DEFINE_TEST_CLIENT_WITH_PIPE() 147 CHECK((hss.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE)); in DEFINE_TEST_CLIENT_WITH_PIPE() 148 CHECK((hss.satisfiable_signals & MOJO_HANDLE_SIGNAL_READABLE)); in DEFINE_TEST_CLIENT_WITH_PIPE() 184 WaitForSignals(h, MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_P() 188 EXPECT_TRUE((hss.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE)); in TEST_P() 189 EXPECT_TRUE((hss.satisfiable_signals & MOJO_HANDLE_SIGNAL_READABLE)); in TEST_P() 223 WaitForSignals(h, MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_P() 227 ASSERT_TRUE((hss.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE)); in TEST_P() 228 ASSERT_TRUE((hss.satisfiable_signals & MOJO_HANDLE_SIGNAL_READABLE)); in TEST_P() 250 WaitForSignals(h, MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_P() [all …]
|
D | core_unittest.cc | 28 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE | 177 MOJO_HANDLE_SIGNAL_READABLE, &hss[0])); in TEST_F() 211 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED, in TEST_F() 216 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED, in TEST_F() 218 EXPECT_TRUE(hss[1].satisfiable_signals & MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 228 EXPECT_FALSE(hss[1].satisfiable_signals & MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 259 MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_F() 260 ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE, in TEST_F() 300 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F() 314 mojo::Wait(mojo::Handle(ch), MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_F() [all …]
|
D | message_pipe_unittest.cc | 27 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE | 133 WaitForSignals(pipe0_, MOJO_HANDLE_SIGNAL_READABLE, &state)); in TEST_F() 157 WaitForSignals(pipe1_, MOJO_HANDLE_SIGNAL_READABLE, &state)); in TEST_F() 169 WaitForSignals(pipe1_, MOJO_HANDLE_SIGNAL_READABLE, &state)); in TEST_F() 230 WaitForSignals(pipe0_, MOJO_HANDLE_SIGNAL_READABLE, &state)); in TEST_F() 263 WaitForSignals(pipe1_, MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_F() 264 ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE, in TEST_F() 271 ASSERT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE, in TEST_F() 297 WaitForSignals(pipe1_, MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_F() 298 ASSERT_TRUE(hss.satisfied_signals & MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() [all …]
|
D | trap_unittest.cc | 127 MojoAddTrigger(t, t, MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 132 MojoAddTrigger(t, buffer_handle, MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 174 MojoAddTrigger(t, a, MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 230 MojoAddTrigger(t, a, MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 259 MojoAddTrigger(t, a, MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 284 MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 311 MojoAddTrigger(t, consumer, MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 530 MojoAddTrigger(t, consumer, MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 559 MojoAddTrigger(t, consumer, MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 582 MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() [all …]
|
D | signals_unittest.cc | 39 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE | in TEST_F() 47 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE | in TEST_F() 54 EXPECT_EQ(MOJO_RESULT_OK, WaitForSignals(b, MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 57 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE, in TEST_F() 59 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE | in TEST_F() 69 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE | in TEST_F()
|
D | invitation_unittest.cc | 457 WaitForSignals(primordial_pipe, MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 477 WaitForSignals(primordial_pipe, MOJO_HANDLE_SIGNAL_READABLE); in DEFINE_TEST_CLIENT() 494 WaitForSignals(pipes[0], MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 496 WaitForSignals(pipes[1], MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 521 WaitForSignals(pipes[0], MOJO_HANDLE_SIGNAL_READABLE); in DEFINE_TEST_CLIENT() 522 WaitForSignals(pipes[1], MOJO_HANDLE_SIGNAL_READABLE); in DEFINE_TEST_CLIENT() 540 WaitForSignals(primordial_pipe, MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 560 WaitForSignals(primordial_pipe, MOJO_HANDLE_SIGNAL_READABLE); in DEFINE_TEST_CLIENT() 634 WaitForSignals(pipe, MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 678 WaitForSignals(pipe, MOJO_HANDLE_SIGNAL_READABLE); in DEFINE_TEST_CLIENT() [all …]
|
D | handle_signals_state.h | 56 bool readable() const { return satisfies_any(MOJO_HANDLE_SIGNAL_READABLE); } in readable() 81 return !can_satisfy_any(MOJO_HANDLE_SIGNAL_READABLE); in never_readable()
|
D | message_unittest.cc | 199 EXPECT_EQ(MOJO_RESULT_OK, WaitForSignals(b, MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 232 MojoTestBase::WaitForSignals(h, MOJO_HANDLE_SIGNAL_READABLE); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 270 MojoTestBase::WaitForSignals(h, MOJO_HANDLE_SIGNAL_READABLE); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 290 MojoTestBase::WaitForSignals(h, MOJO_HANDLE_SIGNAL_READABLE); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 342 EXPECT_EQ(MOJO_RESULT_OK, WaitForSignals(b, MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 445 EXPECT_EQ(MOJO_RESULT_OK, WaitForSignals(b, MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 471 EXPECT_EQ(MOJO_RESULT_OK, WaitForSignals(b, MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 542 WaitForSignals(extracted_handle, MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 569 WaitForSignals(pipe.handle1->value(), MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 859 MojoTestBase::WaitForSignals(h, MOJO_HANDLE_SIGNAL_READABLE); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() [all …]
|
D | message_pipe_dispatcher.cc | 366 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_READABLE; in GetHandleSignalsStateNoLock() 367 rv.satisfiable_signals |= MOJO_HANDLE_SIGNAL_READABLE; in GetHandleSignalsStateNoLock() 370 rv.satisfiable_signals |= MOJO_HANDLE_SIGNAL_READABLE; in GetHandleSignalsStateNoLock() 374 rv.satisfiable_signals |= MOJO_HANDLE_SIGNAL_READABLE; in GetHandleSignalsStateNoLock()
|
D | quota_unittest.cc | 95 WaitForSignals(a, MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 129 WaitForSignals(a, MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 156 WaitForSignals(b, MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 215 WaitForSignals(b, MOJO_HANDLE_SIGNAL_READABLE); in TEST_F()
|
D | embedder_unittest.cc | 222 WaitForSignals(mp2, MOJO_HANDLE_SIGNAL_READABLE, &state)); in TEST_F() 224 ASSERT_FALSE(state.satisfiable_signals & MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 266 WaitForSignals(mp1, MOJO_HANDLE_SIGNAL_READABLE, &state)); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 268 ASSERT_FALSE(state.satisfiable_signals & MOJO_HANDLE_SIGNAL_READABLE); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
|
D | message_pipe_perftest.cc | 49 CHECK_EQ(WaitForSignals(mp, MOJO_HANDLE_SIGNAL_READABLE, &hss), in WriteWaitThenRead() 98 MojoResult result = WaitForSignals(mp, MOJO_HANDLE_SIGNAL_READABLE, &hss); in RunPingPongClient()
|
/external/libchrome/mojo/public/cpp/system/tests/ |
D | wait_unittest.cc | 61 Wait(invalid_handle, MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 83 EXPECT_EQ(MOJO_RESULT_OK, Wait(p.handle1.get(), MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 90 Wait(p.handle1.get(), MOJO_HANDLE_SIGNAL_READABLE, &c_hss)); in TEST_F() 91 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE, in TEST_F() 96 Wait(p.handle1.get(), MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_F() 117 Wait(p.handle1.get(), MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_F() 139 Wait(p.handle1.get(), MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_F() 159 Wait(p.handle1.get(), MOJO_HANDLE_SIGNAL_READABLE, &hss)); in TEST_F() 175 Wait(p.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 189 MojoHandleSignals signals[2] = {MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() [all …]
|
D | wait_set_unittest.cc | 63 wait_set.AddHandle(p.handle1.get(), MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 81 wait_set.AddHandle(p.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 95 wait_set.AddHandle(p.handle1.get(), MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 143 wait_set.AddHandle(q.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 144 wait_set.AddHandle(q.handle1.get(), MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 145 wait_set.AddHandle(p.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 162 wait_set.AddHandle(p.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 189 wait_set.AddHandle(p.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 190 wait_set.AddHandle(p.handle1.get(), MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 226 wait_set.AddHandle(p.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() [all …]
|
D | simple_watcher_unittest.cc | 57 b_watcher.Watch(b.get(), MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 82 b_watcher.Watch(b.get(), MOJO_HANDLE_SIGNAL_READABLE, NotReached())); in TEST_F() 92 watcher.Watch(pipe.consumer_handle.get(), MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 129 b_watcher.Watch(b.get(), MOJO_HANDLE_SIGNAL_READABLE, NotReached())); in TEST_F() 142 b_watcher.Watch(b.get(), MOJO_HANDLE_SIGNAL_READABLE, NotReached())); in TEST_F() 164 b_watcher.Watch(b.get(), MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 188 b_watcher.Watch(b.get(), MOJO_HANDLE_SIGNAL_READABLE, NotReached())); in TEST_F() 209 b_watcher.Watch(b.get(), MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 231 b_watcher.Watch(b.get(), MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 255 b_watcher.Watch(b.get(), MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() [all …]
|
D | handle_signal_tracker_unittest.cc | 44 MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 50 Wait(pipe.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE, in TEST_F() 55 MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 62 HandleSignalTracker tracker(pipe.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE); in TEST_F() 80 MOJO_HANDLE_SIGNAL_READABLE); in TEST_F()
|
D | core_unittest.cc | 23 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE; 26 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE | 173 sigs.push_back(MOJO_HANDLE_SIGNAL_READABLE); in TEST() 196 Wait(h0.get(), MOJO_HANDLE_SIGNAL_READABLE, &state)); in TEST() 200 EXPECT_FALSE(state.satisfiable_signals & MOJO_HANDLE_SIGNAL_READABLE); in TEST() 220 Wait(h1.get(), MOJO_HANDLE_SIGNAL_READABLE, &state)); in TEST() 255 Wait(h0.get(), MOJO_HANDLE_SIGNAL_READABLE, &state)); in TEST() 272 Wait(mp.handle1.get(), MOJO_HANDLE_SIGNAL_READABLE, &state)); in TEST()
|
D | handle_signals_state_unittest.cc | 31 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE | in TEST_F() 33 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE | in TEST_F()
|
/external/libchrome/mojo/public/c/system/tests/ |
D | core_api_unittest.cc | 20 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE; 23 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE | 106 sig = MOJO_HANDLE_SIGNAL_READABLE; in TEST() 139 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE, in TEST() 144 EXPECT_FALSE(state.satisfiable_signals & MOJO_HANDLE_SIGNAL_READABLE); in TEST() 167 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST() 198 sig = MOJO_HANDLE_SIGNAL_READABLE; in TEST() 204 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE, in TEST() 206 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_NEW_DATA_READABLE | in TEST() 233 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED, in TEST() [all …]
|
/external/libchrome/mojo/public/cpp/system/ |
D | handle_signals_state.h | 52 bool readable() const { return satisfies_any(MOJO_HANDLE_SIGNAL_READABLE); } in readable() 77 return !can_satisfy_any(MOJO_HANDLE_SIGNAL_READABLE); in never_readable()
|
D | data_pipe_drainer.cc | 25 source_.get(), MOJO_HANDLE_SIGNAL_READABLE, in DataPipeDrainer()
|
/external/libchrome/mojo/public/c/system/ |
D | types.h | 187 const MojoHandleSignals MOJO_HANDLE_SIGNAL_READABLE = 1 << 0; variable 195 #define MOJO_HANDLE_SIGNAL_READABLE ((MojoHandleSignals)1 << 0) macro
|
/external/libchrome/mojo/core/test/ |
D | mojo_test_base.cc | 128 CHECK_EQ(WaitForSignals(mp, MOJO_HANDLE_SIGNAL_READABLE), MOJO_RESULT_OK); in ReadMessageWithHandles() 145 CHECK_EQ(WaitForSignals(mp, MOJO_HANDLE_SIGNAL_READABLE), MOJO_RESULT_OK); in ReadMessageWithOptionalHandle() 170 CHECK_EQ(WaitForSignals(mp, MOJO_HANDLE_SIGNAL_READABLE), MOJO_RESULT_OK); in ReadMessage() 269 CHECK_EQ(WaitForSignals(consumer, MOJO_HANDLE_SIGNAL_READABLE), in ReadData()
|
/external/libchrome/mojo/public/cpp/bindings/lib/ |
D | connector.cc | 231 rv = Wait(message_pipe_.get(), MOJO_HANDLE_SIGNAL_READABLE); in WaitForIncomingMessage() 399 message_pipe_.get(), MOJO_HANDLE_SIGNAL_READABLE, in WaitToReadMore() 559 message_pipe_.get(), MOJO_HANDLE_SIGNAL_READABLE, in EnsureSyncWatcherExists()
|