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; 6 7struct TestWTFCodeGeneration { 8 string str; 9 string? nullable_str; 10 array<string> strs; 11 array<string?> nullable_strs; 12 array<array<int32>> arrays; 13 array<bool> bools; 14 array<handle<message_pipe>> handles; 15 map<string, string?> str_map; 16 map<int32, array<int32>> array_map; 17 map<int32, handle<message_pipe>> handle_map; 18 array<map<string, string?>> str_maps; 19}; 20 21union TestWTFCodeGeneration2 { 22 string str; 23 array<string> strs; 24 map<string, string?> str_map; 25}; 26 27struct TestWTFStruct { 28 string str; 29 int32 integer; 30}; 31 32interface TestWTF { 33 EchoString(string? str) => (string? str); 34 EchoStringArray(array<string?>? arr) => (array<string?>? arr); 35 EchoStringMap(map<string, string?>? str_map) 36 => (map<string, string?>? str_map); 37}; 38