| Index: tests/standalone/io/security_context_argument_test.dart
|
| diff --git a/tests/standalone/io/security_context_argument_test.dart b/tests/standalone/io/security_context_argument_test.dart
|
| index 391708a933c652ec72718e5eb262f868fa63bed4..91de8dceea933d179b5cb6c82a8bf43419bdeb96 100644
|
| --- a/tests/standalone/io/security_context_argument_test.dart
|
| +++ b/tests/standalone/io/security_context_argument_test.dart
|
| @@ -35,6 +35,13 @@ void testUsePrivateKeyArguments() {
|
| localFile('certificates/server_key.pem'), password: 3),
|
| argumentOrTypeError);
|
|
|
| + // Empty data.
|
| + Expect.throws(() => c.usePrivateKeyBytes([], password: 'dartdart'),
|
| + tlsException);
|
| + Expect.throws(() => c.setTrustedCertificatesBytes([]), tlsException);
|
| + Expect.throws(() => c.useCertificateChainBytes([]), tlsException);
|
| + Expect.throws(() => c.setClientAuthoritiesBytes([]), argumentError);
|
| +
|
| // Malformed PEM certs.
|
| Expect.throws(() => c.usePrivateKeySync(
|
| localFile('certificates/client1_key_malformed.pem'),
|
|
|