class SimpleClient
Defined at line 238 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
A very simple client to fuchsia.hardware.network.Device to run data path
tests against.
Public Members
static const uint64_t kBufferSize
Public Methods
void SimpleClient ()
Defined at line 242 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
zx::result<fidl::ServerEnd<fuchsia_hardware_network::Device>> NewRequest ()
Defined at line 244 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
zx_status_t OpenSession ()
Defined at line 253 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
zx_status_t AttachPort (fuchsia_hardware_network::wire::PortId port_id, std::vector<fuchsia_hardware_network::wire::FrameType> frames)
Defined at line 320 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
buffer_descriptor_t * descriptor (uint16_t index)
Defined at line 336 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
cpp20::span<uint8_t> data (const buffer_descriptor_t * desc)
Defined at line 343 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
void MintData (uint16_t didx, uint32_t len)
Defined at line 347 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
void ValidateDataInPlace (uint16_t desc, uint16_t mint_idx, uint32_t size)
Defined at line 361 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
void ValidateData (const fidl::VectorView<uint8_t> & data, uint16_t didx)
Defined at line 373 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
buffer_descriptor_t * ResetDescriptor (uint16_t index)
Defined at line 380 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
zx_status_t SendDescriptors (zx::fifo * fifo, const std::vector<uint16_t> & descs, bool reset, size_t count)
Defined at line 402 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
zx_status_t SendTx (const std::vector<uint16_t> & descs, bool reset, size_t count)
Defined at line 416 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
zx_status_t SendRx (const std::vector<uint16_t> & descs, bool reset, size_t count)
Defined at line 420 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
zx_status_t FetchDescriptors (zx::fifo & fifo, uint16_t * out, size_t * count, bool wait)
Defined at line 424 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
zx_status_t FetchTx (uint16_t * out, size_t * count, bool wait)
Defined at line 438 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
zx_status_t FetchRx (uint16_t * out, size_t * count, bool wait)
Defined at line 442 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
zx_status_t WaitOnline (fuchsia_hardware_network::wire::PortId port)
Defined at line 446 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
fidl::WireSyncClient<fuchsia_hardware_network::Session> & session ()
Defined at line 464 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
fidl::WireSyncClient<fuchsia_hardware_network::Device> & device ()
Defined at line 466 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
zx_status_t WaitRx ()
Defined at line 468 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
zx_status_t WaitTx ()
Defined at line 472 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
uint16_t rx_depth ()
Defined at line 476 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc
uint16_t tx_depth ()
Defined at line 478 of file ../../src/connectivity/network/tun/network-tun/network_tun_unittest.cc