Records

Functions

  • template <typename FidlTypetypename CheckerFunc>
    void CannotProxyUnknownEnvelope (std::vector<uint8_t> bytesstd::vector<zx_handle_t> handlesCheckerFunc check)

    Verifies that:

    - |bytes| and |handles| decodes successfully as |FidlType|

    - all handles in |handles| are closed

    - the resulting object fails to encode

    Requires that:

    - If FidlType is a transactional message wrapper, it must have a single

    `result` field that is either a union or a table.

    - Otherwise, FidlType should be a wire domain object.

    Also runs a checker function on the decoded object, to test any properties.

    This is the intended behavior for all flexible types (unions and tables) in

    LLCPP, regardless of resourceness (since no unknown handles are stored, even on

    resource types).

    Defined at line 62 of file ../../src/lib/fidl/llcpp/tests/types_test_utils.h