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:core'; | 6 import 'dart:core'; |
7 import 'dart:typed_data'; | 7 import 'dart:typed_data'; |
8 | 8 |
9 import 'package:mojo/public/dart/application.dart'; | 9 import 'package:mojo/application.dart'; |
10 import 'package:mojo/public/dart/bindings.dart'; | 10 import 'package:mojo/bindings.dart'; |
11 import 'package:mojo/public/dart/core.dart'; | 11 import 'package:mojo/core.dart'; |
12 import 'package:mojom/mojo/files/file.mojom.dart' as files; | 12 import 'package:mojom/mojo/files/file.mojom.dart' as files; |
13 import 'package:mojom/mojo/files/types.mojom.dart' as files; | 13 import 'package:mojom/mojo/files/types.mojom.dart' as files; |
14 import 'package:mojom/mojo/net_address.mojom.dart'; | 14 import 'package:mojom/mojo/net_address.mojom.dart'; |
15 import 'package:mojom/mojo/network_error.mojom.dart'; | 15 import 'package:mojom/mojo/network_error.mojom.dart'; |
16 import 'package:mojom/mojo/network_service.mojom.dart'; | 16 import 'package:mojom/mojo/network_service.mojom.dart'; |
17 import 'package:mojom/mojo/tcp_bound_socket.mojom.dart'; | 17 import 'package:mojom/mojo/tcp_bound_socket.mojom.dart'; |
18 import 'package:mojom/mojo/tcp_connected_socket.mojom.dart'; | 18 import 'package:mojom/mojo/tcp_connected_socket.mojom.dart'; |
19 import 'package:mojom/mojo/terminal/terminal_client.mojom.dart'; | 19 import 'package:mojom/mojo/terminal/terminal_client.mojom.dart'; |
20 | 20 |
21 void ignoreFuture(Future f) { | 21 void ignoreFuture(Future f) { |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 } | 202 } |
203 | 203 |
204 main(List args) { | 204 main(List args) { |
205 MojoHandle appHandle = new MojoHandle(args[0]); | 205 MojoHandle appHandle = new MojoHandle(args[0]); |
206 String url = args[1]; | 206 String url = args[1]; |
207 new NetcatApplication.fromHandle(appHandle) | 207 new NetcatApplication.fromHandle(appHandle) |
208 ..onError = (() { | 208 ..onError = (() { |
209 assert(MojoHandle.reportLeakedHandles()); | 209 assert(MojoHandle.reportLeakedHandles()); |
210 }); | 210 }); |
211 } | 211 } |
OLD | NEW |