Revert "Separate test/fake_audio_device on API and implementation."
This reverts commit 8ea5f9ae5b757aa3a0e6abe46f5c9ef3aaf4b337. Reason for revert: breaks downstream project Original change's description: > Separate test/fake_audio_device on API and implementation. > > Adding ability of injecting audio in end to end tests, that are using > WebRTC. For this purpose as a 1st step test/fake_audio_device will > be moved to production part of WebRTC source code and renamed to > test_audio_device_module. Old header is replaced with alias to the > new one and will be deleted after a while. > > Change-Id: I5284d1dd46ce9bf86cf43268e855520606fa8c5c > > Bug: webrtc:8946 > Change-Id: I5284d1dd46ce9bf86cf43268e855520606fa8c5c > Reviewed-on: https://webrtc-review.googlesource.com/58086 > Commit-Queue: Artem Titov <titovartem@webrtc.org> > Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#22289} TBR=kwiberg@webrtc.org,titovartem@webrtc.org Change-Id: I88d9c4f09cc576ed7c9182dcf0a873d25a8bab54 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: webrtc:8946 Reviewed-on: https://webrtc-review.googlesource.com/59720 Reviewed-by: Artem Titov <titovartem@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22291}
This commit is contained in:
@ -16,8 +16,8 @@
|
||||
#include "call/call.h"
|
||||
#include "call/rtp_transport_controller_send.h"
|
||||
#include "logging/rtc_event_log/rtc_event_log.h"
|
||||
#include "modules/audio_device/include/test_audio_device.h"
|
||||
#include "test/encoder_settings.h"
|
||||
#include "test/fake_audio_device.h"
|
||||
#include "test/fake_decoder.h"
|
||||
#include "test/fake_encoder.h"
|
||||
#include "test/fake_videorenderer.h"
|
||||
@ -99,8 +99,8 @@ class CallTest : public ::testing::Test {
|
||||
int height);
|
||||
void CreateFrameGeneratorCapturer(int framerate, int width, int height);
|
||||
void CreateFakeAudioDevices(
|
||||
std::unique_ptr<TestAudioDeviceModule::Capturer> capturer,
|
||||
std::unique_ptr<TestAudioDeviceModule::Renderer> renderer);
|
||||
std::unique_ptr<FakeAudioDevice::Capturer> capturer,
|
||||
std::unique_ptr<FakeAudioDevice::Renderer> renderer);
|
||||
|
||||
void CreateVideoStreams();
|
||||
void CreateAudioStreams();
|
||||
@ -150,8 +150,8 @@ class CallTest : public ::testing::Test {
|
||||
private:
|
||||
rtc::scoped_refptr<AudioProcessing> apm_send_;
|
||||
rtc::scoped_refptr<AudioProcessing> apm_recv_;
|
||||
rtc::scoped_refptr<TestAudioDeviceModule> fake_send_audio_device_;
|
||||
rtc::scoped_refptr<TestAudioDeviceModule> fake_recv_audio_device_;
|
||||
rtc::scoped_refptr<test::FakeAudioDevice> fake_send_audio_device_;
|
||||
rtc::scoped_refptr<test::FakeAudioDevice> fake_recv_audio_device_;
|
||||
};
|
||||
|
||||
class BaseTest : public RtpRtcpObserver {
|
||||
@ -167,11 +167,10 @@ class BaseTest : public RtpRtcpObserver {
|
||||
virtual size_t GetNumAudioStreams() const;
|
||||
virtual size_t GetNumFlexfecStreams() const;
|
||||
|
||||
virtual std::unique_ptr<TestAudioDeviceModule::Capturer> CreateCapturer();
|
||||
virtual std::unique_ptr<TestAudioDeviceModule::Renderer> CreateRenderer();
|
||||
virtual void OnFakeAudioDevicesCreated(
|
||||
TestAudioDeviceModule* send_audio_device,
|
||||
TestAudioDeviceModule* recv_audio_device);
|
||||
virtual std::unique_ptr<FakeAudioDevice::Capturer> CreateCapturer();
|
||||
virtual std::unique_ptr<FakeAudioDevice::Renderer> CreateRenderer();
|
||||
virtual void OnFakeAudioDevicesCreated(FakeAudioDevice* send_audio_device,
|
||||
FakeAudioDevice* recv_audio_device);
|
||||
|
||||
virtual Call::Config GetSenderCallConfig();
|
||||
virtual Call::Config GetReceiverCallConfig();
|
||||
|
||||
Reference in New Issue
Block a user