diff options
author | Andreas Huber <andih@google.com> | 2016-09-19 13:59:52 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2016-09-19 14:07:54 -0700 |
commit | 8e237941ef08cf9e1b71e2cb60ee8efeb0b8c8ec (patch) | |
tree | 64b302239c7adcb28d1f2f92711cd87eed887691 /tests/foo | |
parent | 15e1558a040d8ae0a92602737a01e1c882e7067c (diff) | |
download | platform_hardware_interfaces-8e237941ef08cf9e1b71e2cb60ee8efeb0b8c8ec.tar.gz platform_hardware_interfaces-8e237941ef08cf9e1b71e2cb60ee8efeb0b8c8ec.tar.bz2 platform_hardware_interfaces-8e237941ef08cf9e1b71e2cb60ee8efeb0b8c8ec.zip |
Additional test cases to verify multi-dimensional arrays work properly.
Bug: 31438033
Change-Id: I1fc58cbbe6f161f7f71a43fa43d743843ba22f76
Test: run updated "hidl_test" and "hidl_test_java"
Diffstat (limited to 'tests/foo')
-rw-r--r-- | tests/foo/1.0/IFoo.hal | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/foo/1.0/IFoo.hal b/tests/foo/1.0/IFoo.hal index 01d64707e4..a073e54fb5 100644 --- a/tests/foo/1.0/IFoo.hal +++ b/tests/foo/1.0/IFoo.hal @@ -61,6 +61,17 @@ interface IFoo { ThreeQuuxes[5] quuxMatrix; }; + typedef string[3] ThreeStrings; + typedef string[5] FiveStrings; + + struct StringMatrix3x5 { + FiveStrings[3] s; + }; + + struct StringMatrix5x3 { + ThreeStrings[5] s; + }; + doThis(float param); doThatAndReturnSomething(int64_t param) generates (int32_t result); doQuiteABit(int32_t a, int64_t b, float c, double d) generates (double something); @@ -81,4 +92,7 @@ interface IFoo { transposeMe(FiveFloats[3] in) generates (ThreeFloats[5] out); callingDrWho(MultiDimensional in) generates (MultiDimensional out); + + transpose(StringMatrix5x3 in) generates (StringMatrix3x5 out); + transpose2(ThreeStrings[5] in) generates (FiveStrings[3] out); }; |