mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Additional tests for enum iteration.
Bug: 68715899 Test: hidl_test Change-Id: I78ca51568a5380839782ead5698f4d0ac0a3a7dd
This commit is contained in:
@@ -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,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user