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

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

Issue 20316002: dart:io | Fix handling of exceptions from onBadCertificate callback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: try again Created 7 years, 5 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/io/secure_socket_bad_certificate_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/secure_socket_renegotiate_test.dart
diff --git a/tests/standalone/io/secure_socket_renegotiate_test.dart b/tests/standalone/io/secure_socket_renegotiate_test.dart
index 8e772e5a12c6ea36c671afa98ba39d555e7471ee..b93824428524cc6f399786e6b80f7f62d79b0d2d 100644
--- a/tests/standalone/io/secure_socket_renegotiate_test.dart
+++ b/tests/standalone/io/secure_socket_renegotiate_test.dart
@@ -7,7 +7,7 @@
// can request a client certificate to be sent.
import "package:expect/expect.dart";
-import "package:path/path.dart" as path;
+import "package:path/path.dart";
import "dart:async";
import "dart:io";
@@ -15,13 +15,12 @@ const HOST_NAME = "localhost";
const CERTIFICATE = "localhost_cert";
-String certificateDatabase() =>
- path.join(path.dirname(new Options().script), 'pkcert', '');
+String certificateDatabase() => join(dirname(new Options().script), 'pkcert');
Future<SecureServerSocket> runServer() {
SecureSocket.initialize(database: certificateDatabase(),
- password: 'dartdart');
+ password: 'dartdart');
return SecureServerSocket.bind(HOST_NAME, 0, CERTIFICATE)
.then((SecureServerSocket server) {
« no previous file with comments | « tests/standalone/io/secure_socket_bad_certificate_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698