Index: tests/standalone/io/secure_multiple_client_server_test.dart |
diff --git a/tests/standalone/io/secure_multiple_client_server_test.dart b/tests/standalone/io/secure_multiple_client_server_test.dart |
index f6576ee8cdb5555c9dce94dfcd2544fb617e2d28..95156885f9a90223ec86f5968c0cb32bac1d36a8 100644 |
--- a/tests/standalone/io/secure_multiple_client_server_test.dart |
+++ b/tests/standalone/io/secure_multiple_client_server_test.dart |
@@ -17,15 +17,14 @@ InternetAddress HOST; |
SecureServerSocket SERVER; |
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 startServer() { |
return SecureServerSocket.bind(HOST, 0, serverContext).then((server) { |