fake_audio_device.h (1191B)
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 "api/audio/audio_device.h" 15 #include "api/ref_count.h" 16 #include "modules/audio_device/include/audio_device_default.h" 17 18 namespace webrtc { 19 20 class FakeAudioDeviceModule 21 : public webrtc_impl::AudioDeviceModuleDefault<AudioDeviceModule> { 22 public: 23 // TODO(bugs.webrtc.org/12701): Fix all users of this class to managed 24 // references using scoped_refptr. Current code doesn't always use refcounting 25 // for this class. 26 void AddRef() const override {} 27 RefCountReleaseStatus Release() const override { 28 return RefCountReleaseStatus::kDroppedLastRef; 29 } 30 }; 31 32 } // namespace webrtc 33 34 #endif // MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_