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

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

Issue 19885002: WebCrypto: Add interfaces for importKey(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move test stuff into MockWebCrypto 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.h
diff --git a/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebAudioDevice.h b/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.h
similarity index 76%
copy from Tools/DumpRenderTree/chromium/TestRunner/src/MockWebAudioDevice.h
copy to Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.h
index 7801d48c78b187b2afff507cc7e6cc5b86a26718..3e408ac8bae6ffdc477397e069cf3ab46fddd854 100644
--- a/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebAudioDevice.h
+++ b/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.h
@@ -28,27 +28,22 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef MockWebAudioDevice_h
-#define MockWebAudioDevice_h
+#ifndef MockWebCrypto_h
+#define MockWebCrypto_h
#include "TestCommon.h"
-#include "public/platform/WebAudioDevice.h"
+#include "public/platform/WebCrypto.h"
namespace WebTestRunner {
-class MockWebAudioDevice : public WebKit::WebAudioDevice {
+class MockWebCrypto : public WebKit::WebCrypto {
public:
- explicit MockWebAudioDevice(double sampleRate);
- virtual ~MockWebAudioDevice();
+ static MockWebCrypto* get();
- virtual void start();
- virtual void stop();
- virtual double sampleRate();
-
-private:
- double m_sampleRate;
+ virtual void digest(const WebKit::WebCryptoAlgorithm&, WebKit::WebCryptoOperationResult*);
+ virtual void importKey(WebKit::WebCryptoKeyFormat, const unsigned char* keyData, size_t keyDataSize, const WebKit::WebCryptoAlgorithm&, bool extractable, WebKit::WebCryptoKeyUsageMask, WebKit::WebCryptoKeyOperationResult*);
};
} // namespace WebTestRunner
-#endif // MockWebAudioDevice_h
+#endif // MockWebCrypto_h

Powered by Google App Engine
This is Rietveld 408576698