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

Unified Diff: content/shell/renderer/test_runner/MockWebAudioDevice.h

Issue 110533009: Import TestRunner library into chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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: content/shell/renderer/test_runner/MockWebAudioDevice.h
diff --git a/content/shell/renderer/test_runner/MockWebAudioDevice.h b/content/shell/renderer/test_runner/MockWebAudioDevice.h
new file mode 100644
index 0000000000000000000000000000000000000000..3888f06248813ee96251086b2a6b325a59aebfa5
--- /dev/null
+++ b/content/shell/renderer/test_runner/MockWebAudioDevice.h
@@ -0,0 +1,29 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MockWebAudioDevice_h
+#define MockWebAudioDevice_h
+
+#include "content/shell/renderer/test_runner/TestCommon.h"
+#include "third_party/WebKit/public/platform/WebAudioDevice.h"
+#include "third_party/WebKit/public/platform/WebNonCopyable.h"
+
+namespace WebTestRunner {
+
+class MockWebAudioDevice : public blink::WebAudioDevice, public blink::WebNonCopyable {
+public:
+ explicit MockWebAudioDevice(double sampleRate);
+ virtual ~MockWebAudioDevice();
+
+ virtual void start();
+ virtual void stop();
+ virtual double sampleRate();
+
+private:
+ double m_sampleRate;
+};
+
+} // namespace WebTestRunner
+
+#endif // MockWebAudioDevice_h
« no previous file with comments | « content/shell/renderer/test_runner/MockSpellCheck.cpp ('k') | content/shell/renderer/test_runner/MockWebAudioDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698