Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a20d00ba authored by Steven Moreland's avatar Steven Moreland
Browse files

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
parent 999693e4
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -36,6 +36,17 @@ interface IBaz extends IBase {
    typedef SomeOtherEnum thisIsAnAlias;
    typedef IBaz anIBazByAnyOtherName;

    struct NastyNester {
        struct NestersNasty {
            struct NestersNastyNester {
                IBaz baz;
                vec<NestersNasty> nasties;
            };
        };

        IBaz baz;
    };

    enum SomeEnum : SomeOtherEnum {
        quux = 33,
        goober = 192,