Chromium Code Reviews| 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 91de8dceea933d179b5cb6c82a8bf43419bdeb96..b3195b119cf3a19ccf8b62f5abbc0dba525cdd8b 100644 |
| --- a/tests/standalone/io/security_context_argument_test.dart |
| +++ b/tests/standalone/io/security_context_argument_test.dart |
| @@ -31,9 +31,20 @@ void testUsePrivateKeyArguments() { |
| fileSystemException); |
| Expect.throws(() => c.usePrivateKeySync(1), argumentOrTypeError); |
| Expect.throws(() => c.usePrivateKeySync(null), argumentError); |
| + |
| + // Bad password type. |
| Expect.throws(() => c.usePrivateKeySync( |
| localFile('certificates/server_key.pem'), password: 3), |
| argumentOrTypeError); |
| + Expect.throws(() => c.setTrustedCertificatesBytes( |
| + localFile('certificates/server_key.pem'), password: 3), |
| + argumentOrTypeError); |
| + Expect.throws(() => c.useCertificateChainBytes( |
|
Bill Hesse
2016/02/16 20:33:05
We could do more tests - Null, and a really long s
zra
2016/02/17 18:42:44
Done.
|
| + localFile('certificates/server_key.pem'), password: 3), |
| + argumentOrTypeError); |
| + Expect.throws(() => c.setClientAuthoritiesBytes( |
| + localFile('certificates/server_key.pem'), password: 3), |
| + argumentOrTypeError); |
| // Empty data. |
| Expect.throws(() => c.usePrivateKeyBytes([], password: 'dartdart'), |