| 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 75%
|
| copy from Tools/DumpRenderTree/chromium/TestRunner/src/MockWebAudioDevice.h
|
| copy to Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.h
|
| index 7801d48c78b187b2afff507cc7e6cc5b86a26718..be1f3d911cc3e87a904f96cfac77dbe5722679d8 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&) OVERRIDE;
|
| + virtual void importKey(WebKit::WebCryptoKeyFormat, const unsigned char* keyData, size_t keyDataSize, const WebKit::WebCryptoAlgorithm&, bool extractable, WebKit::WebCryptoKeyUsageMask, WebKit::WebCryptoKeyOperationResult&) OVERRIDE;
|
| };
|
|
|
| } // namespace WebTestRunner
|
|
|
| -#endif // MockWebAudioDevice_h
|
| +#endif // MockWebCrypto_h
|
|
|