| // Copyright 2020 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| /// This library is for types only supported on fuchsia. |
| /// Where possible, new definitions should go into extra_messages.test.fidl |
| /// instead. |
| library fidl.test.coding.fuchsia; |
| |
| protocol LinearizerTest { |
| VectorOfUint32(vector<uint32> v); |
| VectorOfString(vector<string> v); |
| }; |
| |
| resource struct StructWithHandle { |
| handle h; |
| int32 foo; |
| }; |
| |
| resource struct StructWithManyHandles { |
| handle h1; |
| handle h2; |
| vector<handle>:2 hs; |
| }; |
| |
| resource table TableOfStructWithHandle { |
| 1: StructWithHandle a; |
| 2: StructWithManyHandles b; |
| }; |
| |
| resource table SmallerTableOfStructWithHandle { |
| 1: reserved; |
| 2: StructWithManyHandles b; |
| }; |