| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 import "mojo/public/interfaces/bindings/tests/ping_service.mojom"; |
| 8 |
| 7 interface FooInterface {}; | 9 interface FooInterface {}; |
| 8 | 10 |
| 9 struct StructContainsAssociated { | 11 struct StructContainsAssociated { |
| 10 associated FooInterface? foo_interface; | 12 associated FooInterface? foo_interface; |
| 11 associated FooInterface& foo_request; | 13 associated FooInterface& foo_request; |
| 12 array<associated FooInterface> foo_interfaces; | 14 array<associated FooInterface> foo_interfaces; |
| 13 array<associated FooInterface&> foo_requests; | 15 array<associated FooInterface&> foo_requests; |
| 14 }; | 16 }; |
| 15 | 17 |
| 16 union UnionContainsAssociated { | 18 union UnionContainsAssociated { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 35 | 37 |
| 36 interface IntegerSender { | 38 interface IntegerSender { |
| 37 Echo(int32 value) => (int32 value); | 39 Echo(int32 value) => (int32 value); |
| 38 Send(int32 value); | 40 Send(int32 value); |
| 39 }; | 41 }; |
| 40 | 42 |
| 41 interface IntegerSenderConnection { | 43 interface IntegerSenderConnection { |
| 42 GetSender(associated IntegerSender& sender); | 44 GetSender(associated IntegerSender& sender); |
| 43 AsyncGetSender() => (associated IntegerSender sender); | 45 AsyncGetSender() => (associated IntegerSender sender); |
| 44 }; | 46 }; |
| 47 |
| 48 interface AssociatedPingProvider { |
| 49 GetPing(associated PingService& request); |
| 50 }; |
| OLD | NEW |