summaryrefslogtreecommitdiffstats
path: root/webkit/support/web_audio_device_mock.h
blob: 3a963c2266d96a1f86eab9d45a8658e2cd987f03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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/platform/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_