Index: tests/standalone/io/https_client_certificate_test.dart |
diff --git a/tests/standalone/io/https_client_certificate_test.dart b/tests/standalone/io/https_client_certificate_test.dart |
index 27b97ed9e130d428531c20d1f074957a397b6249..dc11a45d84a579bb1318453a117e7a0fa74c238e 100644 |
--- a/tests/standalone/io/https_client_certificate_test.dart |
+++ b/tests/standalone/io/https_client_certificate_test.dart |
@@ -13,17 +13,17 @@ const HOST_NAME = "localhost"; |
String localFile(path) => Platform.script.resolve(path).toFilePath(); |
SecurityContext serverContext = new SecurityContext() |
- ..useCertificateChainSync(localFile('certificates/server_chain.pem')) |
- ..usePrivateKeySync(localFile('certificates/server_key.pem'), |
- password: 'dartdart'); |
+ ..useCertificateChain(localFile('certificates/server_chain.pem')) |
+ ..usePrivateKey(localFile('certificates/server_key.pem'), |
+ password: 'dartdart'); |
// TODO: Specify which client certificate roots to trust. |
SecurityContext clientContext = new SecurityContext() |
- ..setTrustedCertificatesSync(localFile('certificates/trusted_certs.pem')) |
+ ..setTrustedCertificates(localFile('certificates/trusted_certs.pem')) |
// TODO: Set a client certificate here. |
- ..useCertificateChainSync(localFile('certificates/server_chain.pem')) |
- ..usePrivateKeySync(localFile('certificates/server_key.pem'), |
- password: 'dartdart'); |
+ ..useCertificateChain(localFile('certificates/server_chain.pem')) |
+ ..usePrivateKey(localFile('certificates/server_key.pem'), |
+ password: 'dartdart'); |
void main() { |
asyncStart(); |