class MsgWrapper
Defined at line 5548 of file fidling/gen/sdk/testing/fidl/types_tests/test.types/hlcpp/test/types/cpp/fidl.h
Certain traits are only implemented for top level (i.e. request/response struct)
types, since LLCPP only calls encode/decode on those top level types.
Types used in tests that exercise these codepaths (e.g. involving HasFlexibleEnvelope)
should be put in a request/response struct instead of a regular struct in order
to reflect the actual paths exercised within a protocol.
For example, to test a union MyUnion, instead of:
- declaring wrapper struct `struct MyUnionStruct { MyUnion xu };`
- writing encode/decode tests in C++ using MyUnionStruct
do:
- add method `MyUnion() -> (MyUnion result);`
- write tests in C++ using MsgWrapper::MyUnionResponse
Public Methods
void ~MsgWrapper ()
void TestXUnion (TestXUnionCallback callback)
void TestNonResourceXUnion (TestNonResourceXUnionCallback callback)
void TestTable (TestTableCallback callback)
void TestResourceTable (TestResourceTableCallback callback)