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 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:isolate'; | 6 import 'dart:isolate'; |
7 import 'dart:mojo_bindings' as bindings; | |
8 import 'dart:mojo_core' as core; | |
9 import 'dart:typed_data'; | 7 import 'dart:typed_data'; |
| 8 import 'mojo:bindings' as bindings; |
| 9 import 'mojo:core' as core; |
10 | 10 |
11 import 'package:mojo/dart/testing/expect.dart'; | 11 import 'package:mojo/dart/testing/expect.dart'; |
12 import 'package:mojo/public/interfaces/bindings/tests/sample_interfaces.mojom.da
rt' as sample; | 12 import 'package:mojo/public/interfaces/bindings/tests/sample_interfaces.mojom.da
rt' as sample; |
13 import 'package:mojo/public/interfaces/bindings/tests/test_structs.mojom.dart' a
s structs; | 13 import 'package:mojo/public/interfaces/bindings/tests/test_structs.mojom.dart' a
s structs; |
14 import 'package:mojo/public/interfaces/bindings/tests/rect.mojom.dart' as rect; | 14 import 'package:mojo/public/interfaces/bindings/tests/rect.mojom.dart' as rect; |
15 | 15 |
16 class ProviderImpl extends sample.Provider { | 16 class ProviderImpl extends sample.Provider { |
17 ProviderImpl(core.MojoMessagePipeEndpoint endpoint) : super(endpoint) { | 17 ProviderImpl(core.MojoMessagePipeEndpoint endpoint) : super(endpoint) { |
18 super.delegate = this; | 18 super.delegate = this; |
19 } | 19 } |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 testSerializeNamedRegion(); | 116 testSerializeNamedRegion(); |
117 testSerializeArrayValueTypes(); | 117 testSerializeArrayValueTypes(); |
118 } | 118 } |
119 | 119 |
120 | 120 |
121 main() async { | 121 main() async { |
122 testSerializeStructs(); | 122 testSerializeStructs(); |
123 await testCallResponse(); | 123 await testCallResponse(); |
124 await testAwaitCallResponse(); | 124 await testAwaitCallResponse(); |
125 } | 125 } |
OLD | NEW |