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

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

Issue 22887014: Remove the certificate management methods from dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | tests/standalone/io/certificate_test_client.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/certificate_test.dart
diff --git a/tests/standalone/io/certificate_test.dart b/tests/standalone/io/certificate_test.dart
deleted file mode 100644
index b4c8796043aabebb0f664fbe21ee5fe7c1c5bfd1..0000000000000000000000000000000000000000
--- a/tests/standalone/io/certificate_test.dart
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// This test verifies that a server certificate can be verified by a client
-// that loads the certificate authority certificate it depends on at runtime.
-
-import "package:path/path.dart";
-import "dart:io";
-import "dart:async";
-
-String scriptDir = dirname(new Options().script);
-
-void main() {
- SecureSocket.initialize(database: join(scriptDir, 'pkcert'),
- password: 'dartdart');
- runServer().then((SecureServerSocket server) {
- return Process.run(new Options().executable,
- ['--checked',
- join(scriptDir, 'certificate_test_client.dart'),
- server.port.toString(),
- join(scriptDir, 'pkcert', 'myauthority.pem')]);
- }).then((ProcessResult result) {
- if (result.exitCode != 0 || !result.stdout.contains("SUCCESS")) {
- print("Client failed with exit code ${result.exitCode}");
- print(" stdout (expects \"SUCCESS\\n\"):");
- print(result.stdout);
- print(" stderr:");
- print(result.stderr);
- throw new AssertionError();
- }
- });
-}
-
-Future<SecureServerSocket> runServer() =>
- SecureServerSocket.bind("localhost", 0, "localhost_cert")
- .then((server) => server..listen(
- (socket) => socket.pipe(socket).then((_) => server.close())));
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | tests/standalone/io/certificate_test_client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698