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 | 6 |
7 import 'package:mojo/application.dart'; | 7 import 'package:mojo/application.dart'; |
8 import 'package:mojo/bindings.dart'; | 8 import 'package:mojo/bindings.dart'; |
9 import 'package:mojo/core.dart'; | 9 import 'package:mojo/core.dart'; |
10 import 'package:service_test_interfaces/test/echo_service.mojom.dart'; | 10 import 'package:service_test_interfaces/test/echo_service.mojom.dart'; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 ApplicationConnection connection) { | 42 ApplicationConnection connection) { |
43 connection.provideService( | 43 connection.provideService( |
44 EchoServiceName, (endpoint) => new EchoServiceImpl(this, endpoint)); | 44 EchoServiceName, (endpoint) => new EchoServiceImpl(this, endpoint)); |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 main(List args) { | 48 main(List args) { |
49 MojoHandle appHandle = new MojoHandle(args[0]); | 49 MojoHandle appHandle = new MojoHandle(args[0]); |
50 String url = args[1]; | 50 String url = args[1]; |
51 new EchoApplication.fromHandle(appHandle) | 51 new EchoApplication.fromHandle(appHandle) |
52 ..onError = (() { | 52 ..onError = ((_) { |
53 MojoHandle.reportLeakedHandles(); | 53 MojoHandle.reportLeakedHandles(); |
54 }); | 54 }); |
55 } | 55 } |
OLD | NEW |