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

Unified Diff: tests/standalone/src/io/SocketCloseTest.dart

Issue 9699017: Start better error reporting for sockets (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed bug Created 8 years, 9 months 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 | « tests/standalone/src/io/EchoServerTest.dart ('k') | tests/standalone/src/io/SocketExceptionTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/SocketCloseTest.dart
diff --git a/tests/standalone/src/io/SocketCloseTest.dart b/tests/standalone/src/io/SocketCloseTest.dart
index c67f1c17b28fd86c92bfa92839b014fb55d71908..205bfc3eaa98919c9cf83e52aaa2d60f8e5d0a48 100644
--- a/tests/standalone/src/io/SocketCloseTest.dart
+++ b/tests/standalone/src/io/SocketCloseTest.dart
@@ -91,7 +91,7 @@ class SocketClose {
}
}
- void errorHandler() {
+ void errorHandler(Exception e) {
_errorEvents++;
_socket.close();
}
@@ -279,8 +279,8 @@ class SocketCloseServer extends Isolate {
connection.close();
}
- void errorHandler() {
- Expect.fail("Socket error");
+ void errorHandler(Exception e) {
+ Expect.fail("Socket error $e");
}
_iterations++;
@@ -290,7 +290,7 @@ class SocketCloseServer extends Isolate {
connection.onError = errorHandler;
}
- void errorHandlerServer() {
+ void errorHandlerServer(Exception e) {
Expect.fail("Server socket error");
}
« no previous file with comments | « tests/standalone/src/io/EchoServerTest.dart ('k') | tests/standalone/src/io/SocketExceptionTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698