[safe-browsing] Database full hash matches like prefix match.
[chromium-blink-merge.git] / content / shell / renderer / test_runner / MockWebAudioDevice.h
blob54cd345db90235091cb3ec81854fff7c632b6e50
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 {
15 public:
16 explicit MockWebAudioDevice(double sampleRate);
17 virtual ~MockWebAudioDevice();
19 virtual void start();
20 virtual void stop();
21 virtual double sampleRate();
23 private:
24 double m_sampleRate;
26 DISALLOW_COPY_AND_ASSIGN(MockWebAudioDevice);
29 } // namespace WebTestRunner
31 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBAUDIODEVICE_H_