diff options
author | crogers@google.com <crogers@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-13 23:36:54 +0000 |
---|---|---|
committer | crogers@google.com <crogers@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-13 23:36:54 +0000 |
commit | 1a2b090f457dc1bcc6dda99fe54639f9d1ad0f20 (patch) | |
tree | bd980ef8de3c528aee1ab19a75d1ca5c47752272 /webkit/support/web_audio_device_mock.h | |
parent | aabfa653361e53c03ab1d03fed4a3a28fd5f205c (diff) | |
download | chromium_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.h')
-rw-r--r-- | webkit/support/web_audio_device_mock.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/webkit/support/web_audio_device_mock.h b/webkit/support/web_audio_device_mock.h new file mode 100644 index 0000000..a348480 --- /dev/null +++ b/webkit/support/web_audio_device_mock.h @@ -0,0 +1,23 @@ +// 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. + +#ifndef WEBKIT_SUPPORT_WEB_AUDIO_DEVICE_MOCK_H_ +#define WEBKIT_SUPPORT_WEB_AUDIO_DEVICE_MOCK_H_ + +#include "third_party/WebKit/Source/WebKit/chromium/public/WebAudioDevice.h" + +class WebAudioDeviceMock : public WebKit::WebAudioDevice { + public: + WebAudioDeviceMock(double sampleRate); + virtual ~WebAudioDeviceMock() { } + + virtual void start() { } + virtual void stop() { } + virtual double sampleRate(); + + private: + double sample_rate_; +}; + +#endif // WEBKIT_SUPPORT_WEB_AUDIO_DEVICE_MOCK_H_ |