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

Unified Diff: tests/standalone/io/secure_server_stream_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 | « tests/standalone/io/secure_builtin_roots_test.dart ('k') | tests/standalone/io/secure_server_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/secure_server_stream_test.dart
diff --git a/tests/standalone/io/secure_server_stream_test.dart b/tests/standalone/io/secure_server_stream_test.dart
index f40581f0c9d10f88f9816766aeab2cbd55267548..da0ecc8af5d3ad5e111216db7d6c996c0a2722de 100644
--- a/tests/standalone/io/secure_server_stream_test.dart
+++ b/tests/standalone/io/secure_server_stream_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import "dart:io";
+import "dart:isolate";
const SERVER_ADDRESS = "127.0.0.1";
const HOST_NAME = "localhost";
@@ -79,6 +80,7 @@ Function EndTest;
const CLIENT_NAMES = const ['able', 'baker', 'camera', 'donut', 'echo'];
void main() {
+ ReceivePort keepAlive = new ReceivePort();
Path scriptDir = new Path.fromNative(new Options().script).directoryPath;
Path certificateDatabase = scriptDir.append('pkcert');
SecureSocket.initialize(database: certificateDatabase.toNativePath(),
@@ -90,6 +92,7 @@ void main() {
EndTest = () {
Expect.equals(CLIENT_NAMES.length, server.numConnections);
server.stop();
+ keepAlive.close();
};
for (var x in CLIENT_NAMES) {
« no previous file with comments | « tests/standalone/io/secure_builtin_roots_test.dart ('k') | tests/standalone/io/secure_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698