Lines Matching defs:channel
531 zx_handle_t channel;
533 ASSERT_EQ(zx_channel_create(0, &thread_arg.channel, &channel), ZX_OK);
539 // Wait for the thread to send a channel call before suspending it
540 ASSERT_EQ(zx_object_wait_one(channel, ZX_CHANNEL_READABLE, ZX_TIME_INFINITE, NULL),
550 ASSERT_EQ(zx_channel_read(channel, 0, buf, NULL, sizeof(buf), 0, &actual_bytes, NULL),
557 ASSERT_EQ(zx_channel_write(channel, 0, buf, sizeof(buf), NULL, 0), ZX_OK);
559 // Make sure the remote channel didn't get signaled
560 EXPECT_EQ(zx_object_wait_one(thread_arg.channel, ZX_CHANNEL_READABLE, 0, NULL),
563 // Make sure we can't read from the remote channel (the message should have
565 EXPECT_EQ(zx_channel_read(thread_arg.channel, 0, buf, NULL, sizeof(buf), 0,
577 ASSERT_EQ(zx_handle_close(channel), ZX_OK);