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

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: Rebase and rename Interface --> Private 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 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
« no previous file with comments | « Tools/DumpRenderTree/DumpRenderTree.gypi ('k') | Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698