test: generated_serializer: Test Flags that is struct member

Add fields to the test struct to test serialization/deserialization of
scoped enums and flags that are struct members.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Paul Elder 2022-08-03 19:56:36 +09:00
parent 207c9e1c1d
commit deaf13de9b
2 changed files with 30 additions and 0 deletions

View file

@ -9,6 +9,13 @@ enum IPAOperationCode {
IPAOperationStop,
};
[scopedEnum] enum ErrorFlags {
Error1 = 0x1,
Error2 = 0x2,
Error3 = 0x4,
Error4 = 0x8,
};
struct IPASettings {};
struct TestStruct {
@ -19,6 +26,8 @@ struct TestStruct {
int32 i;
string s3;
IPAOperationCode c;
ErrorFlags e;
[flags] ErrorFlags f;
};
interface IPATestInterface {