| Index: tests/standalone/io/secure_builtin_roots_database_test.dart
|
| diff --git a/tests/standalone/io/secure_builtin_roots_database_test.dart b/tests/standalone/io/secure_builtin_roots_database_test.dart
|
| deleted file mode 100644
|
| index 7b0893e964c6a6a2755abb3dee35feb69ab40531..0000000000000000000000000000000000000000
|
| --- a/tests/standalone/io/secure_builtin_roots_database_test.dart
|
| +++ /dev/null
|
| @@ -1,36 +0,0 @@
|
| -// Copyright (c) 2012, 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.
|
| -
|
| -import "package:expect/expect.dart";
|
| -import "package:path/path.dart";
|
| -import "dart:io";
|
| -import "dart:isolate";
|
| -import "dart:async";
|
| -
|
| -void testGoogleUrl() {
|
| - ReceivePort keepAlive = new ReceivePort();
|
| - HttpClient client = new HttpClient();
|
| - client.getUrl(Uri.parse('https://www.google.com'))
|
| - .then((request) => request.close())
|
| - .then((response)=> response.last)
|
| - .then((_) {
|
| - client.close();
|
| - keepAlive.close();
|
| - });
|
| -}
|
| -
|
| -void InitializeSSL() {
|
| - // If the built-in root certificates aren't loaded, the connection
|
| - // should signal an error. Even when an external database is loaded,
|
| - // they should not be loaded.
|
| - var certificateDatabase = join(dirname(Platform.script), 'pkcert');
|
| - SecureSocket.initialize(database: certificateDatabase,
|
| - password: 'dartdart',
|
| - useBuiltinRoots: true);
|
| -}
|
| -
|
| -void main() {
|
| - InitializeSSL();
|
| - testGoogleUrl();
|
| -}
|
|
|