class Message

Defined at line 967 of file ../../src/devices/bin/driver_runtime/channel_test.cc

Describes a message to transfer for a channel call transaction.

This is passed from the test to the server thread for verifying received messages.

Public Members

static const uint32_t kMaxDataSize

Public Methods

void Message (uint32_t data_size, uint32_t num_handles)

|data_size| specifies the size of the data to transfer, not including the txid.

|num_handles| specifies the number of handles to create and transfer.

Defined at line 973 of file ../../src/devices/bin/driver_runtime/channel_test.cc

void Message (uint32_t data_size, cpp20::span<zx_handle_t> handles)

|handles| specifies the handles that should be transferred, rather than creating new ones.

Defined at line 977 of file ../../src/devices/bin/driver_runtime/channel_test.cc

zx_status_t Write (const fdf::Channel & channel, const fdf::Arena & arena, fdf_txid_t txid)

Writes a message to |channel|, with the data and handle buffers allocated using |arena|.

Defined at line 1007 of file ../../src/devices/bin/driver_runtime/channel_test.cc

zx::result<fdf::Channel::ReadReturn> Call (const fdf::Channel & channel, const fdf::Arena & arena, zx::time deadline)

Synchronously calls to |channel|, with the data and handle buffers allocated using |arena|.

Defined at line 1021 of file ../../src/devices/bin/driver_runtime/channel_test.cc

bool IsEquivalent (fdf::Channel::ReadReturn & read)

Returns whether |read| contains the expected data and number of handles.

Defined at line 1085 of file ../../src/devices/bin/driver_runtime/channel_test.cc