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

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

Issue 1319703002: Breaking Change: merge BoringSSL branch into master (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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_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();
}
« no previous file with comments | « tests/standalone/io/secure_socket_alpn_test.dart ('k') | tests/standalone/io/secure_socket_bad_data_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698