From 61db8544658dd5d7afdf3f16e505490bfba0b104 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Mon, 3 Oct 2016 10:30:55 -0700 Subject: [PATCH] Add test for referring to nested types. Bug: 31821285 Test: `make hidl_test && adb sync && adb shell hidl_test` Change-Id: Iae030baa5bbe6e890512b494a0b657163c6a99a6 --- tests/foo/1.0/IFoo.hal | 2 +- tests/foo/1.0/types.hal | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/foo/1.0/IFoo.hal b/tests/foo/1.0/IFoo.hal index d0119ec3a0..5cbacd257c 100644 --- a/tests/foo/1.0/IFoo.hal +++ b/tests/foo/1.0/IFoo.hal @@ -31,7 +31,7 @@ interface IFoo { }; struct Fumble { - float x; + Outer.Inner data; }; typedef Fumble Gumble; diff --git a/tests/foo/1.0/types.hal b/tests/foo/1.0/types.hal index a2c85937a7..9666b53814 100644 --- a/tests/foo/1.0/types.hal +++ b/tests/foo/1.0/types.hal @@ -21,3 +21,13 @@ struct Abc { float y; handle z; }; + +struct Outer { + struct Inner { + int32_t data; + }; +}; + +struct Unrelated { + Outer.Inner great; +};