Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1056)

Unified Diff: services/dart/test/pingpong_target/lib/main.dart

Issue 1414483010: Dart: Use a RawReceivePort to receive events for Mojo handles. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/dart/test/pingpong/lib/main.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/dart/test/pingpong_target/lib/main.dart
diff --git a/services/dart/test/pingpong_target/lib/main.dart b/services/dart/test/pingpong_target/lib/main.dart
index 0d83133a4cb73294dc9e4a908967cd611bcd1f24..54d3a5325991020e5bdc03b4d1eb0cdf20e30305 100644
--- a/services/dart/test/pingpong_target/lib/main.dart
+++ b/services/dart/test/pingpong_target/lib/main.dart
@@ -28,10 +28,12 @@ class PingPongServiceImpl implements PingPongService {
// These methods are unimplemented; they merely throw on invocation.
Future<PingPongServicePingTargetUrlResponseParams> pingTargetUrl(
- String url, int count, [Function responseFactory]) =>
+ String url, int count,
+ [Function responseFactory]) =>
throw "Unimplemented";
Future<PingPongServicePingTargetServiceResponseParams> pingTargetService(
- Object service, int count, [Function responseFactory]) =>
+ Object service, int count,
+ [Function responseFactory]) =>
throw "Unimplemented";
void getPingPongService(Object service) => throw "Unimplemented";
@@ -53,7 +55,7 @@ class PingPongApplication extends Application {
connection.provideService(PingPongServiceName,
(endpoint) => new PingPongServiceImpl(this, endpoint));
// Close the application when the first connection goes down.
- connection.onError = closeApplication;
+ connection.onError = ((_) => closeApplication());
}
Future closeApplication() async {
« no previous file with comments | « services/dart/test/pingpong/lib/main.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698