Lines Matching refs:handles

250     MojoHandle handles[2] = {MOJO_HANDLE_INVALID, MOJO_HANDLE_INVALID};
254 core()->WaitMany(MakeUserPointer(handles),
286 core()->WaitMany(MakeUserPointer(handles),
293 core()->WaitMany(MakeUserPointer(handles),
304 core()->WaitMany(MakeUserPointer(handles),
317 handles[0] = CreateMockHandle(&info[0]);
322 core()->WaitMany(MakeUserPointer(handles),
336 core()->WaitMany(MakeUserPointer(handles),
347 handles[1] = handles[0] + 1; // Invalid handle.
349 core()->WaitMany(MakeUserPointer(handles),
355 handles[1] = CreateMockHandle(&info[1]);
357 core()->WaitMany(MakeUserPointer(handles),
367 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(handles[0]));
368 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(handles[1]));
375 // Only check arguments checked by |Core|, namely |handle|, |handles|, and
388 MojoHandle handles[2] = {MOJO_HANDLE_INVALID, MOJO_HANDLE_INVALID};
399 MakeUserPointer(handles),
410 MakeUserPointer(handles),
411 std::numeric_limits<uint32_t>::max() / sizeof(handles[0]),
415 // Invalid handle in |handles|.
420 MakeUserPointer(handles),
425 // Two invalid handles in |handles|.
430 MakeUserPointer(handles),
436 handles[0] = h;
441 MakeUserPointer(handles),
450 handles[0] = h2;
455 MakeUserPointer(handles),
460 // One of the |handles| is still invalid.
465 MakeUserPointer(handles),
470 // One of the |handles| is the same as |handle|.
471 handles[1] = h;
476 MakeUserPointer(handles),
482 handles[1] = h2;
487 MakeUserPointer(handles),
500 // Only check arguments checked by |Core|, namely |handle|, |handles|, and
579 // Only check arguments checked by |Core|, namely |handle|, |handles|, and
585 // Null |handles| with nonzero |num_handles|.
599 // Only check arguments checked by |Core|, namely |handle|, |handles|, and
632 // Should get two distinct, valid handles.
853 MojoHandle handles[10];
883 num_handles = arraysize(handles);
888 MakeUserPointer(handles),
895 // Make sure that you can't pass either of the message pipe's handles over
937 num_handles = arraysize(handles);
942 MakeUserPointer(handles),
968 num_handles = arraysize(handles);
973 MakeUserPointer(handles),
979 h_received = handles[0];
1011 num_handles = arraysize(handles);
1016 MakeUserPointer(handles),
1036 // Should get two distinct, valid handles.
1200 // Tests passing data pipe producer and consumer handles.
1209 MojoHandle handles[10];
1243 num_handles = arraysize(handles);
1248 MakeUserPointer(handles),
1254 MojoHandle ch_received = handles[0];
1310 num_handles = arraysize(handles);
1315 MakeUserPointer(handles),
1321 MojoHandle ph_received = handles[0];
1395 num_handles = arraysize(handles);
1400 MakeUserPointer(handles),
1406 ch = handles[0];
1458 num_handles = arraysize(handles);
1463 MakeUserPointer(handles),
1469 ph = handles[0];