diff options
author | Steven Moreland | 2017-11-27 14:26:36 -0600 |
---|---|---|
committer | android-build-merger | 2017-11-27 14:26:36 -0600 |
commit | 33818402850f7833ed59cbbc4e9b5939b81c138f (patch) | |
tree | 0c1e3b3da6f0ab1e5bd0b3b75df91a75e349129a /tests | |
parent | 9efbbfa2f1a56a4eed8e3cbafcf69b2df5e1cecb (diff) | |
parent | a110506924f4559be64496c49c0956d46dd7b89b (diff) | |
download | platform-hardware-interfaces-33818402850f7833ed59cbbc4e9b5939b81c138f.tar.gz platform-hardware-interfaces-33818402850f7833ed59cbbc4e9b5939b81c138f.tar.xz platform-hardware-interfaces-33818402850f7833ed59cbbc4e9b5939b81c138f.zip |
Merge "Additional tests for enum iteration." am: d10cb041bc am: 53541a71c2
am: a110506924
Change-Id: I6c2ef27d9cb1996234b7d877fb88d7e7e7b1ba83
Diffstat (limited to 'tests')
-rw-r--r-- | tests/foo/1.0/types.hal | 27 |
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 { | |||
38 | struct Unrelated { | 38 | struct Unrelated { |
39 | Outer.Inner great; | 39 | Outer.Inner great; |
40 | }; | 40 | }; |
41 | |||
42 | // structs to test enum iterators in hidl_test | ||
43 | struct 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 | ||