summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/foo/1.0/types.hal27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/foo/1.0/types.hal b/tests/foo/1.0/types.hal
index 6b4b6974..b358a93d 100644
--- a/tests/foo/1.0/types.hal
+++ b/tests/foo/1.0/types.hal
@@ -38,3 +38,30 @@ struct Outer {
38struct Unrelated { 38struct Unrelated {
39 Outer.Inner great; 39 Outer.Inner great;
40}; 40};
41
42// structs to test enum iterators in hidl_test
43struct EnumIterators {
44 enum Empty : uint32_t {};
45
46 enum Parent : uint32_t {
47 A,
48 };
49 enum EmptyChild : Parent {};
50 enum Grandchild : EmptyChild {
51 B,
52 };
53
54 enum SkipsValues : uint32_t {
55 A = 7,
56 B,
57 C = 100,
58 D,
59 E
60 };
61 enum MultipleValues : uint32_t {
62 A = 7,
63 B = 7,
64 C = 8,
65 D = 7,
66 };
67}; \ No newline at end of file