1// Copyright 2016 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5module mojo.test.data_view; 6 7enum TestEnum { 8 VALUE_0, 9 VALUE_1 10}; 11 12interface TestInterface { 13 [Sync] 14 Echo(int32 value) => (int32 out_value); 15}; 16 17struct NestedStruct { 18 int32 f_int32; 19}; 20 21[Native] 22struct TestNativeStruct; 23 24union TestUnion { 25 bool f_bool; 26 int32 f_int32; 27}; 28 29struct TestStruct { 30 string f_string; 31 NestedStruct? f_struct; 32 TestNativeStruct? f_native_struct; 33 array<bool> f_bool_array; 34 array<int32> f_int32_array; 35 array<TestEnum> f_enum_array; 36 array<TestInterface> f_interface_array; 37 array<array<int32>> f_nested_array; 38 array<NestedStruct> f_struct_array; 39 array<TestUnion> f_union_array; 40 map<string, int32> f_map; 41}; 42