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

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

Issue 11415290: Add a callback to SecureSocket for certificates that fail to be authenticated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Free persistent handle upon destruction. Created 8 years 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 | « sdk/lib/io/secure_socket.dart ('k') | tests/standalone/io/secure_server_stream_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/secure_builtin_roots_test.dart
diff --git a/tests/standalone/io/secure_builtin_roots_test.dart b/tests/standalone/io/secure_builtin_roots_test.dart
index 176f6ee83762fe5fd30aca4a16f1f50d8f0b3ae2..386dd75dddd5f43bd3e5647f465597ed882a2054 100644
--- a/tests/standalone/io/secure_builtin_roots_test.dart
+++ b/tests/standalone/io/secure_builtin_roots_test.dart
@@ -7,6 +7,7 @@ import "dart:uri";
import "dart:isolate";
void testGoogleUrl() {
+ ReceivePort keepAlive = new ReceivePort();
HttpClient client = new HttpClient();
void testUrl(String url) {
@@ -24,6 +25,7 @@ void testGoogleUrl() {
};
response.inputStream.onClosed = () {
client.shutdown();
+ keepAlive.close();
};
};
conn.onError = (error) => Expect.fail("Unexpected IO error $error");
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | tests/standalone/io/secure_server_stream_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698