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

Unified Diff: tests/standalone/io/secure_server_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
Index: tests/standalone/io/secure_server_test.dart
diff --git a/tests/standalone/io/secure_server_test.dart b/tests/standalone/io/secure_server_test.dart
index 5050cedd3c02e959e1ca9bdec49e506a97b8ddae..89415483b9542d8d49b105715aacb69944818f6f 100644
--- a/tests/standalone/io/secure_server_test.dart
+++ b/tests/standalone/io/secure_server_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";
@@ -96,6 +97,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(),
@@ -107,6 +109,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_server_stream_test.dart ('k') | tests/standalone/io/secure_socket_bad_certificate_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698