Functions
-
bool operator== (zx_handle_disposition_t a, zx_handle_disposition_t b)Defined at line 35 of file ../../src/lib/fidl/llcpp/tests/conformance/conformance_utils.h
-
bool operator!= (zx_handle_disposition_t a, zx_handle_disposition_t b)Defined at line 39 of file ../../src/lib/fidl/llcpp/tests/conformance/conformance_utils.h
-
std::ostream & operator<< (std::ostream & os, const zx_handle_disposition_t & hd)Defined at line 40 of file ../../src/lib/fidl/llcpp/tests/conformance/conformance_utils.h
-
template <typename T>bool ComparePayload (const T * actual, size_t actual_size, const T * expected, size_t expected_size)Defined at line 51 of file ../../src/lib/fidl/llcpp/tests/conformance/conformance_utils.h
-
template <typename FidlType>bool EncodeSuccess (fidl::internal::WireFormatVersion wire_format_version, FidlType * value, const std::vector<uint8_t> & bytes, const std::vector<zx_handle_disposition_t> & handle_dispositions, bool check_handle_rights)Verifies that |value| encodes to |bytes|.
Note: This is destructive to |value| - a new value must be created with each call.
Defined at line 76 of file ../../src/lib/fidl/llcpp/tests/conformance/conformance_utils.h
-
template <typename FidlType>bool EncodeFailure (fidl::internal::WireFormatVersion wire_format_version, FidlType * value, zx_status_t expected_error_code)Verifies that |value| fails to encode, with the expected error code.
Note: This is destructive to |value| - a new value must be created with each call.
Defined at line 140 of file ../../src/lib/fidl/llcpp/tests/conformance/conformance_utils.h
-
template <typename FidlType, typename EqualityCheck>bool DecodeSuccess (fidl::internal::WireFormatVersion wire_format_version, std::vector<uint8_t> bytes, std::vector<zx_handle_info_t> handle_infos, EqualityCheck equality_check)Verifies that |bytes| decodes to an object that is the same as |value|.
EqualityCheck is a callable with the signature |bool EqualityCheck(FidlType
&
actual)|
that performs deep equality and compares handles based on koid, type and rights.
Defined at line 163 of file ../../src/lib/fidl/llcpp/tests/conformance/conformance_utils.h
-
template <typename FidlType>bool DecodeFailure (fidl::internal::WireFormatVersion wire_format_versionstd::vector<uint8_t> bytesstd::vector<zx_handle_info_t> handle_infoszx_status_t expected_error_code)Verifies that |bytes| fails to decode as |FidlType|, with the expected error
code.
Defined at line 191 of file ../../src/lib/fidl/llcpp/tests/conformance/conformance_utils.h