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

Unified Diff: Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp

Issue 21016005: WebCrypto: Add more operations to the platform API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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: Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp
diff --git a/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp b/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp
index 56a46d0bccd1884aada261cac9baf3e6a0d37c2c..4b6138d1ce9806c8ff977b36c021042521732ec0 100644
--- a/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp
+++ b/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp
@@ -108,6 +108,21 @@ MockWebCrypto* MockWebCrypto::get()
return &crypto;
}
+void MockWebCrypto::encrypt(const WebKit::WebCryptoAlgorithm& algorithm, const WebKit::WebCryptoKey& key, WebKit::WebCryptoOperationResult& result)
+{
+ result.initializationSucceeded(new MockCryptoOperation(algorithm, result));
+}
+
+void MockWebCrypto::decrypt(const WebKit::WebCryptoAlgorithm& algorithm, const WebKit::WebCryptoKey& key, WebKit::WebCryptoOperationResult& result)
+{
+ result.initializationSucceeded(new MockCryptoOperation(algorithm, result));
+}
+
+void MockWebCrypto::sign(const WebKit::WebCryptoAlgorithm& algorithm, const WebKit::WebCryptoKey& key, WebKit::WebCryptoOperationResult& result)
+{
+ result.initializationSucceeded(new MockCryptoOperation(algorithm, result));
+}
+
void MockWebCrypto::digest(const WebKit::WebCryptoAlgorithm& algorithm, WebKit::WebCryptoOperationResult& result)
{
result.initializationSucceeded(new MockCryptoOperation(algorithm, result));

Powered by Google App Engine
This is Rietveld 408576698