| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module mojo.test { | 5 module mojo.test { |
| 6 | 6 |
| 7 struct StructA { | 7 struct StructA { |
| 8 uint64 i; | 8 uint64 i; |
| 9 }; | 9 }; |
| 10 | 10 |
| 11 struct StructB { | 11 struct StructB { |
| 12 StructA struct_a; | 12 StructA struct_a; |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 struct StructC { | 15 struct StructC { |
| 16 uint8[] array; | 16 uint8[] array; |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 struct StructD { |
| 20 handle<message_pipe>[] message_pipes; |
| 21 }; |
| 22 |
| 23 struct StructE { |
| 24 StructD struct_d; |
| 25 handle<data_pipe_consumer> data_pipe_consumer; |
| 26 }; |
| 27 |
| 19 interface ConformanceTestInterface { | 28 interface ConformanceTestInterface { |
| 20 Method0(float param0); | 29 Method0(float param0); |
| 21 Method1(StructA param0); | 30 Method1(StructA param0); |
| 22 Method2(StructB param0, StructA param1); | 31 Method2(StructB param0, StructA param1); |
| 23 Method3(bool[] param0); | 32 Method3(bool[] param0); |
| 24 Method4(StructC param0, uint8[] param1); | 33 Method4(StructC param0, uint8[] param1); |
| 34 Method5(StructE param0, handle<data_pipe_producer> param1); |
| 25 }; | 35 }; |
| 26 | 36 |
| 27 struct BasicStruct { | 37 struct BasicStruct { |
| 28 int32 a; | 38 int32 a; |
| 29 }; | 39 }; |
| 30 | 40 |
| 31 [Client=IntegrationTestInterface2] | 41 [Client=IntegrationTestInterface2] |
| 32 interface IntegrationTestInterface1 { | 42 interface IntegrationTestInterface1 { |
| 33 Method0(BasicStruct param0); | 43 Method0(BasicStruct param0); |
| 34 }; | 44 }; |
| 35 | 45 |
| 36 [Client=IntegrationTestInterface1] | 46 [Client=IntegrationTestInterface1] |
| 37 interface IntegrationTestInterface2 { | 47 interface IntegrationTestInterface2 { |
| 38 Method0() => (uint8[] param0); | 48 Method0() => (uint8[] param0); |
| 39 }; | 49 }; |
| 40 | 50 |
| 41 } | 51 } |
| OLD | NEW |