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

Unified Diff: tests/standalone/io/secure_server_socket_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/secure_server_socket_test.dart
diff --git a/tests/standalone/io/secure_server_socket_test.dart b/tests/standalone/io/secure_server_socket_test.dart
index 1fd92f2a06c21de6c4faf33d3bd954da244434fd..a7c080184968b510ff3d32cae838d9ef51ef6c62 100644
--- a/tests/standalone/io/secure_server_socket_test.dart
+++ b/tests/standalone/io/secure_server_socket_test.dart
@@ -33,7 +33,7 @@ void testInvalidBind() {
SecureServerSocket.bind("ko.faar.__hest__", 0, CERTIFICATE).then((_) {
Expect.fail("Failure expected");
}).catchError((error) {
- Expect.isTrue(error is SocketIOException);
+ Expect.isTrue(error is SocketException);
port.toSendPort().send(1);
});
@@ -41,7 +41,7 @@ void testInvalidBind() {
SecureServerSocket.bind("8.8.8.8", 0, CERTIFICATE).then((_) {
Expect.fail("Failure expected");
}).catchError((error) {
- Expect.isTrue(error is SocketIOException);
+ Expect.isTrue(error is SocketException);
port.toSendPort().send(1);
});
@@ -60,7 +60,7 @@ void testInvalidBind() {
port.toSendPort().send(1);
}).catchError((error) {
Expect.notEquals('windows', Platform.operatingSystem);
- Expect.isTrue(error is SocketIOException);
+ Expect.isTrue(error is SocketException);
s.close();
port.toSendPort().send(1);
});
@@ -90,13 +90,13 @@ void testSimpleConnectFail(String certificate, bool cancelOnError) {
Expect.fail("No client connection expected.");
})
.catchError((error) {
- Expect.isTrue(error is SocketIOException);
+ Expect.isTrue(error is SocketException);
});
server.listen((serverEnd) {
Expect.fail("No server connection expected.");
},
onError: (error) {
- Expect.isTrue(error is SocketIOException);
+ Expect.isTrue(error is SocketException);
clientEndFuture.then((_) {
if (!cancelOnError) server.close();
port.close();
« no previous file with comments | « tests/standalone/io/secure_no_builtin_roots_test.dart ('k') | tests/standalone/io/socket_exception_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698