summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2017-11-27 20:26:36 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-11-27 20:26:36 +0000
commit33818402850f7833ed59cbbc4e9b5939b81c138f (patch)
tree0c1e3b3da6f0ab1e5bd0b3b75df91a75e349129a /tests
parent9efbbfa2f1a56a4eed8e3cbafcf69b2df5e1cecb (diff)
parenta110506924f4559be64496c49c0956d46dd7b89b (diff)
downloadandroid_hardware_interfaces-33818402850f7833ed59cbbc4e9b5939b81c138f.tar.gz
android_hardware_interfaces-33818402850f7833ed59cbbc4e9b5939b81c138f.tar.bz2
android_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 6b4b69748..b358a93d6 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