Home
last modified time | relevance | path

Searched refs:MOJO_HANDLE_SIGNAL_PEER_CLOSED (Results 1 – 23 of 23) sorted by relevance

/external/libchrome/mojo/core/
Ddata_pipe_unittest.cc268 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F()
356 ASSERT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F()
371 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F()
428 WaitForSignals(producer_, MOJO_HANDLE_SIGNAL_PEER_CLOSED, &hss)); in TEST_F()
429 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfied_signals); in TEST_F()
430 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfiable_signals); in TEST_F()
449 WaitForSignals(producer_, MOJO_HANDLE_SIGNAL_PEER_CLOSED, &hss)); in TEST_F()
450 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfied_signals); in TEST_F()
451 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfiable_signals); in TEST_F()
470 WaitForSignals(consumer_, MOJO_HANDLE_SIGNAL_PEER_CLOSED, &hss)); in TEST_F()
[all …]
Dsignals_unittest.cc40 MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F()
48 MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F()
60 MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F()
70 MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F()
77 EXPECT_EQ(MOJO_RESULT_OK, WaitForSignals(b, MOJO_HANDLE_SIGNAL_PEER_CLOSED)); in TEST_F()
80 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); in TEST_F()
81 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED | MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED, in TEST_F()
Dcore_unittest.cc29 MOJO_HANDLE_SIGNAL_PEER_CLOSED | MOJO_HANDLE_SIGNAL_PEER_REMOTE |
208 mojo::Wait(mojo::Handle(h[1]), MOJO_HANDLE_SIGNAL_PEER_CLOSED, &hss[1])); 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()
227 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss[1].satisfied_signals); in TEST_F()
292 ASSERT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F()
300 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F()
321 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F()
434 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST_F()
446 mojo::Wait(mojo::Handle(ch), MOJO_HANDLE_SIGNAL_PEER_CLOSED, &hss)); in TEST_F()
[all …]
Dmessage_pipe_unittest.cc28 MOJO_HANDLE_SIGNAL_PEER_CLOSED | MOJO_HANDLE_SIGNAL_PEER_REMOTE |
194 WaitForSignals(pipe1_, MOJO_HANDLE_SIGNAL_PEER_CLOSED, &state)); in TEST_F()
282 WaitForSignals(pipe1_, MOJO_HANDLE_SIGNAL_PEER_CLOSED, &hss)); in TEST_F()
283 ASSERT_TRUE(hss.satisfied_signals & MOJO_HANDLE_SIGNAL_PEER_CLOSED); in TEST_F()
284 ASSERT_TRUE(hss.satisfiable_signals & MOJO_HANDLE_SIGNAL_PEER_CLOSED); in TEST_F()
311 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfied_signals); in TEST_F()
516 EXPECT_EQ(MOJO_RESULT_OK, WaitForSignals(d, MOJO_HANDLE_SIGNAL_PEER_CLOSED)); in TEST_F()
539 EXPECT_EQ(MOJO_RESULT_OK, WaitForSignals(d, MOJO_HANDLE_SIGNAL_PEER_CLOSED)); in TEST_F()
Dinvitation_unittest.cc252 WaitForSignals(pipe, MOJO_HANDLE_SIGNAL_PEER_CLOSED)); in TEST_F()
480 WaitForSignals(primordial_pipe, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT()
527 WaitForSignals(pipes[0], MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT()
528 WaitForSignals(pipes[1], MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT()
563 WaitForSignals(primordial_pipe, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT()
714 WaitForSignals(primordial_pipe, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT()
748 WaitForSignals(primordial_pipe, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in TEST_F()
782 WaitForSignals(primordial_pipe, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT()
791 WaitForSignals(primordial_pipe, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT()
813 WaitForSignals(pipe0, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in TEST_F()
[all …]
Dhandle_signals_state.h65 return satisfies_any(MOJO_HANDLE_SIGNAL_PEER_CLOSED); in peer_closed()
93 return !can_satisfy_any(MOJO_HANDLE_SIGNAL_PEER_CLOSED); in never_peer_closed()
Dmultiprocess_message_pipe_unittest.cc143 CHECK_EQ(hss.satisfied_signals, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT_WITH_PIPE()
144 CHECK_EQ(hss.satisfiable_signals, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT_WITH_PIPE()
617 MOJO_HANDLE_SIGNAL_PEER_CLOSED | MOJO_HANDLE_SIGNAL_PEER_REMOTE | in DEFINE_TEST_CLIENT_WITH_PIPE()
635 MOJO_HANDLE_SIGNAL_PEER_CLOSED | MOJO_HANDLE_SIGNAL_PEER_REMOTE | in DEFINE_TEST_CLIENT_WITH_PIPE()
925 EXPECT_EQ(MOJO_RESULT_OK, WaitForSignals(p0, MOJO_HANDLE_SIGNAL_PEER_CLOSED)); in TEST_P()
1111 EXPECT_EQ(MOJO_RESULT_OK, WaitForSignals(p, MOJO_HANDLE_SIGNAL_PEER_CLOSED)); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
1160 WaitForSignals(service_client, MOJO_HANDLE_SIGNAL_PEER_CLOSED)); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
1207 EXPECT_EQ(MOJO_RESULT_OK, WaitForSignals(a, MOJO_HANDLE_SIGNAL_PEER_CLOSED)); in TEST_P()
1252 WaitForSignals(p, MOJO_HANDLE_SIGNAL_PEER_CLOSED)); in TEST_P()
1267 WaitForSignals(handles[0], MOJO_HANDLE_SIGNAL_PEER_CLOSED)); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
[all …]
Dmessage_pipe_dispatcher.cc379 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_PEER_CLOSED; in GetHandleSignalsStateNoLock()
389 MOJO_HANDLE_SIGNAL_PEER_CLOSED | MOJO_HANDLE_SIGNAL_QUOTA_EXCEEDED; in GetHandleSignalsStateNoLock()
Dembedder_unittest.cc223 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); in TEST_F()
267 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
Ddata_pipe_producer_dispatcher.cc446 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_PEER_CLOSED; in GetHandleSignalsStateNoLock()
448 rv.satisfiable_signals |= MOJO_HANDLE_SIGNAL_PEER_CLOSED; in GetHandleSignalsStateNoLock()
Ddata_pipe_consumer_dispatcher.cc494 rv.satisfied_signals |= MOJO_HANDLE_SIGNAL_PEER_CLOSED; in GetHandleSignalsStateNoLock()
500 rv.satisfiable_signals |= MOJO_HANDLE_SIGNAL_PEER_CLOSED; in GetHandleSignalsStateNoLock()
Dmessage_unittest.cc382 MOJO_HANDLE_SIGNAL_PEER_CLOSED)); in TEST_F()
509 MOJO_HANDLE_SIGNAL_PEER_CLOSED)); in TEST_F()
951 WaitForSignals(handles[1], MOJO_HANDLE_SIGNAL_PEER_CLOSED)); in TEST_F()
Dtrap_unittest.cc282 MOJO_HANDLE_SIGNAL_PEER_CLOSED); in TEST_F()
758 MOJO_HANDLE_SIGNAL_PEER_CLOSED); in TEST_F()
/external/libchrome/mojo/public/c/system/tests/
Dcore_api_unittest.cc24 MOJO_HANDLE_SIGNAL_PEER_CLOSED | MOJO_HANDLE_SIGNAL_PEER_REMOTE |
133 MOJO_HANDLE_SIGNAL_PEER_CLOSED, &state)); in TEST()
142 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); in TEST()
167 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST()
175 EXPECT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED | in TEST()
207 MOJO_HANDLE_SIGNAL_PEER_CLOSED | MOJO_HANDLE_SIGNAL_PEER_REMOTE, in TEST()
231 MOJO_HANDLE_SIGNAL_PEER_CLOSED, &state)); in TEST()
233 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED, in TEST()
235 EXPECT_EQ(MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED, in TEST()
251 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); in TEST()
[all …]
/external/libchrome/mojo/public/cpp/system/tests/
Dhandle_signals_state_unittest.cc32 MOJO_HANDLE_SIGNAL_PEER_CLOSED | MOJO_HANDLE_SIGNAL_PEER_REMOTE, in TEST_F()
34 MOJO_HANDLE_SIGNAL_PEER_CLOSED | MOJO_HANDLE_SIGNAL_PEER_REMOTE); in TEST_F()
Dhandle_signal_tracker_unittest.cc82 MOJO_HANDLE_SIGNAL_PEER_CLOSED); in TEST_F()
Dcore_unittest.cc27 MOJO_HANDLE_SIGNAL_PEER_CLOSED | MOJO_HANDLE_SIGNAL_PEER_REMOTE |
198 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); in TEST()
Dinvitation_unittest.cc258 Wait(pipe0.get(), MOJO_HANDLE_SIGNAL_PEER_CLOSED); in TEST()
Dwait_unittest.cc105 Wait(p.handle1.get(), MOJO_HANDLE_SIGNAL_PEER_CLOSED, &hss)); in TEST_F()
/external/libchrome/mojo/public/cpp/system/
Dhandle_signals_state.h61 return satisfies_any(MOJO_HANDLE_SIGNAL_PEER_CLOSED); in peer_closed()
89 return !can_satisfy_any(MOJO_HANDLE_SIGNAL_PEER_CLOSED); in never_peer_closed()
Dscope_to_message_pipe.cc40 unowned_scoper->pipe_.get(), MOJO_HANDLE_SIGNAL_PEER_CLOSED, in StartWatchingPipe()
/external/libchrome/mojo/public/c/system/
Dtypes.h189 const MojoHandleSignals MOJO_HANDLE_SIGNAL_PEER_CLOSED = 1 << 2; variable
197 #define MOJO_HANDLE_SIGNAL_PEER_CLOSED ((MojoHandleSignals)1 << 2) macro
DREADME.md631 …als` | `MOJO_HANDLE_SIGNAL_READABLE + MOJO_HANDLE_SIGNAL_WRITABLE + MOJO_HANDLE_SIGNAL_PEER_CLOSED`
639 | `satisfied_signals` | `MOJO_HANDLE_SIGNAL_READABLE + MOJO_HANDLE_SIGNAL_PEER_CLOSED`
640 | `satisfiable_signals` | `MOJO_HANDLE_SIGNAL_READABLE + MOJO_HANDLE_SIGNAL_PEER_CLOSED`
650 | `satisfied_signals` | `MOJO_HANDLE_SIGNAL_PEER_CLOSED`
651 | `satisfiable_signals` | `MOJO_HANDLE_SIGNAL_PEER_CLOSED`