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

Unified Diff: Source/testing/runner/MockWebCrypto.h

Issue 23537027: WebCrypto: [refactor] Use "unsigned" rather than "size_t" for buffer sizes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add an ifdef to coordinate with chromium side 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 | « Source/modules/crypto/SubtleCrypto.cpp ('k') | Source/testing/runner/MockWebCrypto.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/testing/runner/MockWebCrypto.h
diff --git a/Source/testing/runner/MockWebCrypto.h b/Source/testing/runner/MockWebCrypto.h
index e2b8c078b4dca8883e4ae83cbe69a187b1176a35..d1bdb22877d53bde4b7a0d7df69a601ec76c2c18 100644
--- a/Source/testing/runner/MockWebCrypto.h
+++ b/Source/testing/runner/MockWebCrypto.h
@@ -40,13 +40,13 @@ class MockWebCrypto : public WebKit::WebCrypto {
public:
static MockWebCrypto* get();
- virtual void encrypt(const WebKit::WebCryptoAlgorithm&, const WebKit::WebCryptoKey&, const unsigned char*, size_t, WebKit::WebCryptoResult) OVERRIDE;
- virtual void decrypt(const WebKit::WebCryptoAlgorithm&, const WebKit::WebCryptoKey&, const unsigned char*, size_t, WebKit::WebCryptoResult) OVERRIDE;
- virtual void sign(const WebKit::WebCryptoAlgorithm&, const WebKit::WebCryptoKey&, const unsigned char*, size_t, WebKit::WebCryptoResult) OVERRIDE;
- virtual void verifySignature(const WebKit::WebCryptoAlgorithm&, const WebKit::WebCryptoKey&, const unsigned char*, size_t, const unsigned char*, size_t, WebKit::WebCryptoResult) OVERRIDE;
- virtual void digest(const WebKit::WebCryptoAlgorithm&, const unsigned char*, size_t, WebKit::WebCryptoResult) OVERRIDE;
+ virtual void encrypt(const WebKit::WebCryptoAlgorithm&, const WebKit::WebCryptoKey&, const unsigned char*, unsigned, WebKit::WebCryptoResult) OVERRIDE;
+ virtual void decrypt(const WebKit::WebCryptoAlgorithm&, const WebKit::WebCryptoKey&, const unsigned char*, unsigned, WebKit::WebCryptoResult) OVERRIDE;
+ virtual void sign(const WebKit::WebCryptoAlgorithm&, const WebKit::WebCryptoKey&, const unsigned char*, unsigned, WebKit::WebCryptoResult) OVERRIDE;
+ virtual void verifySignature(const WebKit::WebCryptoAlgorithm&, const WebKit::WebCryptoKey&, const unsigned char*, unsigned, const unsigned char*, unsigned, WebKit::WebCryptoResult) OVERRIDE;
+ virtual void digest(const WebKit::WebCryptoAlgorithm&, const unsigned char*, unsigned, WebKit::WebCryptoResult) OVERRIDE;
virtual void generateKey(const WebKit::WebCryptoAlgorithm&, bool extractable, WebKit::WebCryptoKeyUsageMask, WebKit::WebCryptoResult) OVERRIDE;
- virtual void importKey(WebKit::WebCryptoKeyFormat, const unsigned char* keyData, size_t keyDataSize, const WebKit::WebCryptoAlgorithm&, bool extractable, WebKit::WebCryptoKeyUsageMask, WebKit::WebCryptoResult) OVERRIDE;
+ virtual void importKey(WebKit::WebCryptoKeyFormat, const unsigned char* keyData, unsigned keyDataSize, const WebKit::WebCryptoAlgorithm&, bool extractable, WebKit::WebCryptoKeyUsageMask, WebKit::WebCryptoResult) OVERRIDE;
virtual void exportKey(WebKit::WebCryptoKeyFormat, const WebKit::WebCryptoKey&, WebKit::WebCryptoResult) OVERRIDE;
};
« no previous file with comments | « Source/modules/crypto/SubtleCrypto.cpp ('k') | Source/testing/runner/MockWebCrypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698