summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ae6b2a5)
raw | patch | inline | side by side (parent: ae6b2a5)
author | Steven Moreland <smoreland@google.com> | |
Fri, 17 Nov 2017 22:25:32 +0000 (14:25 -0800) | ||
committer | Steven Moreland <smoreland@google.com> | |
Fri, 17 Nov 2017 22:25:32 +0000 (14:25 -0800) |
tests/foo/1.0/types.hal | patch | blob | history |
index 6b4b6974891036fa4859b8d5909156128e92c3c5..b358a93d648fc5e9590e839d82b7081910350c42 100644 (file)
--- a/tests/foo/1.0/types.hal
+++ b/tests/foo/1.0/types.hal
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