diff options
author | Steven Moreland | 2018-10-09 12:05:47 -0500 |
---|---|---|
committer | Steven Moreland | 2018-10-09 12:13:10 -0500 |
commit | a20d00ba607b36729d380dafbe97bb3779ecf025 (patch) | |
tree | c981b6e8df4c11e7e4e838ba888c9d4e811ea88e /tests | |
parent | 999693e4e83c71c7d84a10825d4f5101f5f2c0b1 (diff) | |
download | platform-hardware-interfaces-a20d00ba607b36729d380dafbe97bb3779ecf025.tar.gz platform-hardware-interfaces-a20d00ba607b36729d380dafbe97bb3779ecf025.tar.xz platform-hardware-interfaces-a20d00ba607b36729d380dafbe97bb3779ecf025.zip |
tests: IBaz, nasty nesting struct
toString is broken in some cases because of recursive definitions. This
exercises that case.
Bug: 117342189
Test: hidl_test
Test: m android.hardware.tests.baz@1.0 android.hardware.tests.baz-V1.0-java
(this runs hidl-gen on this for both Java and C++ output)
Test: manually inspected output
Change-Id: Ic09ac133345f2d83d6f83d3d0af1f63e7e3250ee
Diffstat (limited to 'tests')
-rw-r--r-- | tests/baz/1.0/IBaz.hal | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/baz/1.0/IBaz.hal b/tests/baz/1.0/IBaz.hal index 8118d8bf..91ed1f27 100644 --- a/tests/baz/1.0/IBaz.hal +++ b/tests/baz/1.0/IBaz.hal | |||
@@ -36,6 +36,17 @@ interface IBaz extends IBase { | |||
36 | typedef SomeOtherEnum thisIsAnAlias; | 36 | typedef SomeOtherEnum thisIsAnAlias; |
37 | typedef IBaz anIBazByAnyOtherName; | 37 | typedef IBaz anIBazByAnyOtherName; |
38 | 38 | ||
39 | struct NastyNester { | ||
40 | struct NestersNasty { | ||
41 | struct NestersNastyNester { | ||
42 | IBaz baz; | ||
43 | vec<NestersNasty> nasties; | ||
44 | }; | ||
45 | }; | ||
46 | |||
47 | IBaz baz; | ||
48 | }; | ||
49 | |||
39 | enum SomeEnum : SomeOtherEnum { | 50 | enum SomeEnum : SomeOtherEnum { |
40 | quux = 33, | 51 | quux = 33, |
41 | goober = 192, | 52 | goober = 192, |