Chromium Code Reviews| Index: net/ssl/ssl_private_key_test_util.h |
| diff --git a/net/ssl/ssl_private_key_test_util.h b/net/ssl/ssl_private_key_test_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..abcd7a679a40b87d839d5b3df3d2a561a391ee77 |
| --- /dev/null |
| +++ b/net/ssl/ssl_private_key_test_util.h |
| @@ -0,0 +1,23 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NET_SSL_SSL_PRIVATE_KEY_TEST_UTIL_H_ |
| +#define NET_SSL_SSL_PRIVATE_KEY_TEST_UTIL_H_ |
| + |
| +#include <string> |
| + |
| +#include "net/ssl/ssl_private_key.h" |
| + |
| +namespace net { |
| + |
| +const char* SSLPrivateKeyTypeToString(SSLPrivateKey::Type type); |
|
Ryan Sleevi
2016/12/13 22:21:08
const char* const ?
davidben
2016/12/14 00:59:43
Returning const out of a function doesn't actually
|
| + |
| +// Tests that |key| matches the private key serialized in |pkcs8| on all |
| +// properties and advertised signature algorithms. The caller is responsible for |
|
Ryan Sleevi
2016/12/13 22:21:08
From reading only this header, I'm not sure what "
davidben
2016/12/14 00:59:43
Rephrased to be more explicit.
|
| +// asserting that |key|'s advertised algorithms are as expected. |
| +void TestSSLPrivateKeyMatches(SSLPrivateKey* key, const std::string& pkcs8); |
| + |
| +} // namespace net |
| + |
| +#endif // NET_SSL_SSL_PRIVATE_KEY_TEST_UTIL_H_ |