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

Unified Diff: tests/standalone/io/socket_exception_test.dart

Issue 16123036: Clean up dart:io exceptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
Index: tests/standalone/io/socket_exception_test.dart
diff --git a/tests/standalone/io/socket_exception_test.dart b/tests/standalone/io/socket_exception_test.dart
index 79f5b72682bac2047100ed4ccdeb32c66ec58be8..41290d62a32708b0f52e9d259d3c20fbb18f5a83 100644
--- a/tests/standalone/io/socket_exception_test.dart
+++ b/tests/standalone/io/socket_exception_test.dart
@@ -20,7 +20,7 @@ class SocketExceptionTest {
server.close();
try {
server.close();
- } on SocketIOException catch(ex) {
+ } on SocketException catch(ex) {
exceptionCaught = true;
} catch (ex) {
wrongExceptionCaught = true;
@@ -31,7 +31,7 @@ class SocketExceptionTest {
// Test invalid host.
ServerSocket.bind("__INVALID_HOST__", 0)
.then((server) { })
- .catchError((e) => e is SocketIOException);
+ .catchError((e) => e is SocketException);
});
}
@@ -70,7 +70,7 @@ class SocketExceptionTest {
client.close();
try {
client.close();
- } on SocketIOException catch(ex) {
+ } on SocketException catch(ex) {
exceptionCaught = true;
} catch (ex) {
wrongExceptionCaught = true;
@@ -79,7 +79,7 @@ class SocketExceptionTest {
Expect.isFalse(wrongExceptionCaught);
try {
client.destroy();
- } on SocketIOException catch(ex) {
+ } on SocketException catch(ex) {
exceptionCaught = true;
} catch (ex) {
print(ex);
@@ -164,7 +164,7 @@ class SocketExceptionTest {
client.listen(
(data) => Expect.fail("Unexpected data"),
onError: (error) {
- Expect.isTrue(error is SocketIOException);
+ Expect.isTrue(error is SocketException);
errors++;
},
onDone: () {
@@ -184,7 +184,7 @@ class SocketExceptionTest {
Expect.fail("Expected error");
},
onError: (error) {
- Expect.isTrue(error is SocketIOException);
+ Expect.isTrue(error is SocketException);
port.close();
});
});
@@ -218,7 +218,7 @@ class SocketExceptionTest {
Socket.connect("hede.hule.hest", 1234)
.then((socket) => Expect.fail("Connection completed"))
- .catchError((e) => port.close(), test: (e) => e is SocketIOException);
+ .catchError((e) => port.close(), test: (e) => e is SocketException);
}
« no previous file with comments | « tests/standalone/io/secure_server_socket_test.dart ('k') | tests/standalone/io/socket_invalid_arguments_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698