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

Unified Diff: content/renderer/webcrypto/webcrypto_impl_unittest.cc

Issue 24276011: WebCrypto: Implement importKey(), sign(), and verify() for HMAC in OpenSSL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 3 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
« no previous file with comments | « content/renderer/webcrypto/webcrypto_impl_openssl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/webcrypto/webcrypto_impl_unittest.cc
diff --git a/content/renderer/webcrypto/webcrypto_impl_unittest.cc b/content/renderer/webcrypto/webcrypto_impl_unittest.cc
index 5c6cad6618693a32a6c4b229dc59ec683239c332..e448c5267d22b05aa2d99400c3fc8f6896a25139 100644
--- a/content/renderer/webcrypto/webcrypto_impl_unittest.cc
+++ b/content/renderer/webcrypto/webcrypto_impl_unittest.cc
@@ -180,6 +180,9 @@ class WebCryptoImplTest : public testing::Test {
WebCryptoImpl crypto_;
};
+// TODO(padolph) Enable these tests for OpenSSL once matching impl is available
+#if !defined(USE_OPENSSL)
+
TEST_F(WebCryptoImplTest, DigestSampleSets) {
// The results are stored here in hex format for readability.
//
@@ -261,6 +264,8 @@ TEST_F(WebCryptoImplTest, DigestSampleSets) {
}
}
+#endif // #if !defined(USE_OPENSSL)
+
TEST_F(WebCryptoImplTest, HMACSampleSets) {
struct TestCase {
WebKit::WebCryptoAlgorithmId algorithm;
@@ -400,6 +405,9 @@ TEST_F(WebCryptoImplTest, HMACSampleSets) {
}
}
+// TODO(padolph) Enable these tests for OpenSSL once matching impl is available
+#if !defined(USE_OPENSSL)
+
TEST_F(WebCryptoImplTest, AesCbcFailures) {
WebKit::WebCryptoKey key = ImportSecretKeyFromRawHexString(
"2b7e151628aed2a6abf7158809cf4f3c",
@@ -593,4 +601,6 @@ TEST_F(WebCryptoImplTest, AesCbcSampleSets) {
}
}
+#endif // !defined(USE_OPENSSL)
+
} // namespace content
« no previous file with comments | « content/renderer/webcrypto/webcrypto_impl_openssl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698