class TestSendMsgMeta

Defined at line 68 of file ../../src/connectivity/network/netstack/udp_serde/udp_serde_test_util.h

Test class encapsulating send-path metadata for the AddrKind::Kind provided

on construction.

Public Members

static const size_t kArenaCapacity

Public Methods

fsocket::wire::SendMsgMeta GetFidl (fidl::Arena<kArenaCapacity> & alloc, bool with_data)

Returns a valid (for testing purposes) fsockeet::wire::SendMsgMeta FIDL message allocated on

the provided arena and constructed based on the encapsulated data. If `with_data` is `true`,

the message will be maximally filled with data; else, it will be minimally filled.

Defined at line 43 of file ../../src/connectivity/network/netstack/udp_serde/udp_serde_test_util.cc

void TestSendMsgMeta (AddrKind::Kind kind)

Defined at line 70 of file ../../src/connectivity/network/netstack/udp_serde/udp_serde_test_util.h

SendMsgMeta GetCStruct ()

Returns a valid (for testing purposes) SendMsgMeta C struct constructed based on the

encapsulated data. The message will be maximally filled with data.

Defined at line 93 of file ../../src/connectivity/network/netstack/udp_serde/udp_serde_test_util.cc

const uint8_t * Addr ()

Returns a pointer to the encapsulated address.

Defined at line 102 of file ../../src/connectivity/network/netstack/udp_serde/udp_serde_test_util.cc

size_t AddrLen ()

Returns the length of the encapsulated address.

Defined at line 135 of file ../../src/connectivity/network/netstack/udp_serde/udp_serde_test_util.cc

IpAddrType AddrType ()

Returns the `IpAddrType` of the encapsulated address.

Defined at line 137 of file ../../src/connectivity/network/netstack/udp_serde/udp_serde_test_util.cc

uint16_t Port ()

Returns the encapsulated port.

Defined at line 139 of file ../../src/connectivity/network/netstack/udp_serde/udp_serde_test_util.cc

uint64_t ZoneIndex ()

Returns the encapsulated zone index.

Defined at line 141 of file ../../src/connectivity/network/netstack/udp_serde/udp_serde_test_util.cc

SendAndRecvCmsgSet CmsgSet ()

Returns the encapsulated cmsg set.

Defined at line 111 of file ../../src/connectivity/network/netstack/udp_serde/udp_serde_test_util.cc