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 |