Index: tests/standalone/io/secure_unauthorized_test.dart |
diff --git a/tests/standalone/io/secure_unauthorized_test.dart b/tests/standalone/io/secure_unauthorized_test.dart |
index 995130fcf4aae80142626735ae9ad857983dcb17..097a0d01d6da7eb79a8746f8c1c848626cb26115 100644 |
--- a/tests/standalone/io/secure_unauthorized_test.dart |
+++ b/tests/standalone/io/secure_unauthorized_test.dart |
@@ -12,13 +12,12 @@ import "dart:io"; |
const HOST_NAME = "localhost"; |
String localFile(path) => Platform.script.resolve(path).toFilePath(); |
-List<int> readLocalFile(path) => (new File(localFile(path))).readAsBytesSync(); |
SecurityContext serverContext = 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'); |
Future<SecureServerSocket> runServer() { |
return SecureServerSocket.bind(HOST_NAME, 0, serverContext) |