Index: tests/standalone/io/secure_client_raw_server_test.dart |
diff --git a/tests/standalone/io/secure_client_raw_server_test.dart b/tests/standalone/io/secure_client_raw_server_test.dart |
index 71682231160ab919c94b020e1860160f0a4a3715..00ea2dc45399bb12e21de610f501fedc71dadb21 100644 |
--- a/tests/standalone/io/secure_client_raw_server_test.dart |
+++ b/tests/standalone/io/secure_client_raw_server_test.dart |
@@ -14,15 +14,14 @@ import "package:async_helper/async_helper.dart"; |
import "package:expect/expect.dart"; |
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')); |
InternetAddress HOST; |
Future<RawSecureServerSocket> startEchoServer() { |