Index: tests/standalone/io/secure_socket_test.dart |
diff --git a/tests/standalone/io/secure_socket_test.dart b/tests/standalone/io/secure_socket_test.dart |
index 82fb84c188699bfc09336ad6bf76e02660369ddf..443e90bbb7e5fc7f0d55a2e1931b9ef9892ad7a6 100644 |
--- a/tests/standalone/io/secure_socket_test.dart |
+++ b/tests/standalone/io/secure_socket_test.dart |
@@ -13,15 +13,14 @@ import "dart:async"; |
import "dart:io"; |
String localFile(path) => Platform.script.resolve(path).toFilePath(); |
-List<int> readLocalFile(path) => (new File(localFile(path))).readAsBytesSync(); |
SecurityContext serverContext = new SecurityContext() |
- ..useCertificateChainBytes(readLocalFile('certificates/server_chain.pem')) |
- ..usePrivateKeyBytes(readLocalFile('certificates/server_key.pem'), |
- password: 'dartdart'); |
+ ..useCertificateChainSync(localFile('certificates/server_chain.pem')) |
+ ..usePrivateKeySync(localFile('certificates/server_key.pem'), |
+ password: 'dartdart'); |
SecurityContext clientContext = new SecurityContext() |
- ..setTrustedCertificates(file: localFile('certificates/trusted_certs.pem')); |
+ ..setTrustedCertificatesSync(localFile('certificates/trusted_certs.pem')); |
Future<HttpServer> startServer() { |
return HttpServer.bindSecure( |