| Index: tests/standalone/io/https_unauthorized_test.dart
|
| diff --git a/tests/standalone/io/https_unauthorized_test.dart b/tests/standalone/io/https_unauthorized_test.dart
|
| index c96934fa8aaaee7019e66386b2995d6cd33a6838..cfa54c201ed8371fb709f9a75ae98c59865379be 100644
|
| --- a/tests/standalone/io/https_unauthorized_test.dart
|
| +++ b/tests/standalone/io/https_unauthorized_test.dart
|
| @@ -14,16 +14,15 @@ const HOST_NAME = "localhost";
|
| const CERTIFICATE = "localhost_cert";
|
|
|
| String localFile(path) => Platform.script.resolve(path).toFilePath();
|
| -List<int> readLocalFile(path) => (new File(localFile(path))).readAsBytesSync();
|
|
|
| SecurityContext untrustedServerContext = new SecurityContext()
|
| - ..useCertificateChainBytes(readLocalFile(
|
| + ..useCertificateChainSync(localFile(
|
| 'certificates/untrusted_server_chain.pem'))
|
| - ..usePrivateKeyBytes(readLocalFile('certificates/untrusted_server_key.pem'),
|
| - password: 'dartdart');
|
| + ..usePrivateKeySync(localFile('certificates/untrusted_server_key.pem'),
|
| + password: 'dartdart');
|
|
|
| SecurityContext clientContext = new SecurityContext()
|
| - ..setTrustedCertificates(file: localFile('certificates/trusted_certs.pem'));
|
| + ..setTrustedCertificatesSync(localFile('certificates/trusted_certs.pem'));
|
|
|
| Future<SecureServerSocket> runServer() {
|
| return HttpServer.bindSecure(
|
|
|