summaryrefslogtreecommitdiffstats
path: root/webkit/support/web_audio_device_mock.cc
diff options
context:
space:
mode:
authorcrogers@google.com <crogers@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-13 23:36:54 +0000
committercrogers@google.com <crogers@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-13 23:36:54 +0000
commit1a2b090f457dc1bcc6dda99fe54639f9d1ad0f20 (patch)
treebd980ef8de3c528aee1ab19a75d1ca5c47752272 /webkit/support/web_audio_device_mock.cc
parentaabfa653361e53c03ab1d03fed4a3a28fd5f205c (diff)
downloadchromium_src-1a2b090f457dc1bcc6dda99fe54639f9d1ad0f20.zip
chromium_src-1a2b090f457dc1bcc6dda99fe54639f9d1ad0f20.tar.gz
chromium_src-1a2b090f457dc1bcc6dda99fe54639f9d1ad0f20.tar.bz2
Add a mock WebAudioDevice for chromium DRT
BUG=none TEST=none (tested locally that this change allows my provisional layout tests to work) Review URL: http://codereview.chromium.org/7108028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/web_audio_device_mock.cc')
-rw-r--r--webkit/support/web_audio_device_mock.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/webkit/support/web_audio_device_mock.cc b/webkit/support/web_audio_device_mock.cc
new file mode 100644
index 0000000..2bb7251
--- /dev/null
+++ b/webkit/support/web_audio_device_mock.cc
@@ -0,0 +1,13 @@
+// Copyright (c) 2011 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.
+
+#include "webkit/support/web_audio_device_mock.h"
+
+WebAudioDeviceMock::WebAudioDeviceMock(double sample_rate)
+ : sample_rate_(sample_rate) {
+}
+
+double WebAudioDeviceMock::sampleRate() {
+ return sample_rate_;
+}