diff --git a/tests/foo/1.0/types.hal b/tests/foo/1.0/types.hal index 6b4b697489..b358a93d64 100644 --- a/tests/foo/1.0/types.hal +++ b/tests/foo/1.0/types.hal @@ -38,3 +38,30 @@ struct Outer { struct Unrelated { Outer.Inner great; }; + +// structs to test enum iterators in hidl_test +struct EnumIterators { + enum Empty : uint32_t {}; + + enum Parent : uint32_t { + A, + }; + enum EmptyChild : Parent {}; + enum Grandchild : EmptyChild { + B, + }; + + enum SkipsValues : uint32_t { + A = 7, + B, + C = 100, + D, + E + }; + enum MultipleValues : uint32_t { + A = 7, + B = 7, + C = 8, + D = 7, + }; +}; \ No newline at end of file