1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBAUDIODEVICE_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBAUDIODEVICE_H_
8 #include "base/basictypes.h"
9 #include "content/shell/renderer/test_runner/TestCommon.h"
10 #include "third_party/WebKit/public/platform/WebAudioDevice.h"
12 namespace WebTestRunner
{
14 class MockWebAudioDevice
: public blink::WebAudioDevice
{
16 explicit MockWebAudioDevice(double sampleRate
);
17 virtual ~MockWebAudioDevice();
21 virtual double sampleRate();
26 DISALLOW_COPY_AND_ASSIGN(MockWebAudioDevice
);
29 } // namespace WebTestRunner
31 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBAUDIODEVICE_H_