1 /*
2  *  Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_
12 #define MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_
13 
14 #include "modules/audio_device/include/audio_device.h"
15 #include "modules/audio_device/include/audio_device_default.h"
16 
17 namespace webrtc {
18 
19 class FakeAudioDeviceModule
20     : public webrtc_impl::AudioDeviceModuleDefault<AudioDeviceModule> {
21  public:
22   // TODO(nisse): Fix all users of this class to managed references using
23   // scoped_refptr. Current code doesn't always use refcounting for this class.
AddRef()24   void AddRef() const override {}
Release()25   rtc::RefCountReleaseStatus Release() const override {
26     return rtc::RefCountReleaseStatus::kDroppedLastRef;
27   }
28 };
29 
30 }  // namespace webrtc
31 
32 #endif  // MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_
33