Index: tests/standalone/io/secure_socket_argument_test.dart |
diff --git a/tests/standalone/io/secure_socket_argument_test.dart b/tests/standalone/io/secure_socket_argument_test.dart |
index 6caf84ef2a78039c0ec1797157d670f1ea6f7d03..1fb34560e41d266d346ddaed0cd895aaa67ce6de 100644 |
--- a/tests/standalone/io/secure_socket_argument_test.dart |
+++ b/tests/standalone/io/secure_socket_argument_test.dart |
@@ -5,23 +5,15 @@ |
import "package:expect/expect.dart"; |
import "dart:io"; |
-void testInitialzeArguments() { |
- Expect.throws(() => SecureSocket.initialize(database: "foo.txt")); |
- Expect.throws(() => SecureSocket.initialize(password: false)); |
- Expect.throws(() => SecureSocket.initialize(useBuiltinRoots: 7)); |
-} |
- |
void testServerSocketArguments() { |
Expect.throws(() => |
- SecureServerSocket.bind(SERVER_ADDRESS, 65536, 5, CERTIFICATE)); |
+ SecureServerSocket.bind(SERVER_ADDRESS, 65536, null)); |
Expect.throws(() => |
- SecureServerSocket.bind(SERVER_ADDRESS, -1, CERTIFICATE)); |
+ SecureServerSocket.bind(SERVER_ADDRESS, -1, null)); |
Expect.throws(() => |
- SecureServerSocket.bind(SERVER_ADDRESS, 0, -1, CERTIFICATE)); |
+ SecureServerSocket.bind(SERVER_ADDRESS, 0, "not a context")); |
} |
void main() { |
- testInitialzeArguments(); |
- SecureSocket.initialize(); |
testServerSocketArguments(); |
} |