summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSteven Moreland2017-11-27 14:26:36 -0600
committerandroid-build-merger2017-11-27 14:26:36 -0600
commit33818402850f7833ed59cbbc4e9b5939b81c138f (patch)
tree0c1e3b3da6f0ab1e5bd0b3b75df91a75e349129a /tests
parent9efbbfa2f1a56a4eed8e3cbafcf69b2df5e1cecb (diff)
parenta110506924f4559be64496c49c0956d46dd7b89b (diff)
downloadplatform-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.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