Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Unified Diff: tests/standalone/io/secure_client_server_test.dart

Issue 1665433002: Adds SecurityContext.setTrustedCertificatesBytes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Adds MemBIOScope Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/standalone/io/secure_client_server_test.dart
diff --git a/tests/standalone/io/secure_client_server_test.dart b/tests/standalone/io/secure_client_server_test.dart
index 2b47342db483a87f1d7dd049fb76d7e40e750ae3..e23efbb729ef186a6e884d23d59076d19d2a0ee4 100644
--- a/tests/standalone/io/secure_client_server_test.dart
+++ b/tests/standalone/io/secure_client_server_test.dart
@@ -24,7 +24,8 @@ SecurityContext serverContext = new SecurityContext()
password: 'dartdart');
SecurityContext clientContext = new SecurityContext()
- ..setTrustedCertificates(file: localFile('certificates/trusted_certs.pem'));
+ ..setTrustedCertificatesBytes(
+ readLocalFile('certificates/trusted_certs.pem'));
Future<SecureServerSocket> startEchoServer() {

Powered by Google App Engine
This is Rietveld 408576698