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

Unified Diff: Source/core/platform/chromium/support/WebCrypto.cpp

Issue 24467004: [webcrypto] Remove MockWebCrypto. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove some unused params 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
Index: Source/core/platform/chromium/support/WebCrypto.cpp
diff --git a/Source/core/platform/chromium/support/WebCrypto.cpp b/Source/core/platform/chromium/support/WebCrypto.cpp
index db3a0ffe0e92642e14396d516bd173ddcc716401..22ff2d0eae0e216df2b9b83ae8976f08b4b97fe0 100644
--- a/Source/core/platform/chromium/support/WebCrypto.cpp
+++ b/Source/core/platform/chromium/support/WebCrypto.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "public/platform/WebCrypto.h"
+#include "core/platform/NotImplemented.cpp"
abarth-chromium 2013/09/26 04:22:27 #include a cpp? Do you mean the h?
eroman 2013/09/26 06:54:07 Woah, oops! I copy pasted and forgot to change to
#include "modules/crypto/CryptoResult.h"
#include "public/platform/WebArrayBuffer.h"
#include <string.h>
@@ -92,4 +93,52 @@ void WebCryptoResult::assign(const WebCryptoResult& o)
m_impl = o.m_impl;
}
+void WebCrypto::encrypt(const WebCryptoAlgorithm&, const WebCryptoKey&, const unsigned char*, unsigned, WebCryptoResult result)
+{
+ notImplemented();
+ result.completeWithError();
+}
+
+void WebCrypto::decrypt(const WebCryptoAlgorithm&, const WebCryptoKey&, const unsigned char*, unsigned, WebCryptoResult result)
+{
+ notImplemented();
+ result.completeWithError();
+}
+
+void WebCrypto::sign(const WebCryptoAlgorithm&, const WebCryptoKey&, const unsigned char*, unsigned, WebCryptoResult result)
+{
+ notImplemented();
+ result.completeWithError();
+}
+
+void WebCrypto::verifySignature(const WebCryptoAlgorithm&, const WebCryptoKey&, const unsigned char*, unsigned, const unsigned char*, unsigned, WebCryptoResult result)
+{
+ notImplemented();
+ result.completeWithError();
+}
+
+void WebCrypto::digest(const WebCryptoAlgorithm&, const unsigned char*, unsigned, WebCryptoResult result)
+{
+ notImplemented();
+ result.completeWithError();
+}
+
+void WebCrypto::generateKey(const WebCryptoAlgorithm&, bool, WebCryptoKeyUsageMask, WebCryptoResult result)
+{
+ notImplemented();
+ result.completeWithError();
+}
+
+void WebCrypto::importKey(WebCryptoKeyFormat, const unsigned char*, unsigned, const WebCryptoAlgorithm&, bool, WebCryptoKeyUsageMask, WebCryptoResult result)
+{
+ notImplemented();
+ result.completeWithError();
+}
+
+void WebCrypto::exportKey(WebCryptoKeyFormat, const WebCryptoKey&, WebCryptoResult result)
+{
+ notImplemented();
+ result.completeWithError();
+}
+
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698