2014-06-27 08:47:52 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
2016-11-15 07:10:52 -08:00
|
|
|
|
|
|
|
|
#include "webrtc/test/call_test.h"
|
|
|
|
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
|
|
2017-02-10 08:15:44 -08:00
|
|
|
#include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h"
|
2016-01-07 17:43:18 +01:00
|
|
|
#include "webrtc/base/checks.h"
|
|
|
|
|
#include "webrtc/config.h"
|
2016-11-17 06:48:48 -08:00
|
|
|
#include "webrtc/modules/audio_mixer/audio_mixer_impl.h"
|
2016-01-07 17:43:18 +01:00
|
|
|
#include "webrtc/test/testsupport/fileutils.h"
|
|
|
|
|
#include "webrtc/voice_engine/include/voe_base.h"
|
2014-06-27 08:47:52 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
namespace test {
|
|
|
|
|
|
2015-04-08 13:00:10 -07:00
|
|
|
namespace {
|
|
|
|
|
const int kVideoRotationRtpExtensionId = 4;
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-27 08:47:52 +00:00
|
|
|
CallTest::CallTest()
|
2014-07-07 13:06:48 +00:00
|
|
|
: clock_(Clock::GetRealTimeClock()),
|
2017-04-10 03:54:05 -07:00
|
|
|
event_log_(RtcEventLog::CreateNull()),
|
2015-12-21 03:14:00 -08:00
|
|
|
video_send_config_(nullptr),
|
2016-01-07 17:43:18 +01:00
|
|
|
video_send_stream_(nullptr),
|
|
|
|
|
audio_send_config_(nullptr),
|
|
|
|
|
audio_send_stream_(nullptr),
|
|
|
|
|
fake_encoder_(clock_),
|
2016-01-14 20:34:30 +01:00
|
|
|
num_video_streams_(1),
|
2016-01-07 17:43:18 +01:00
|
|
|
num_audio_streams_(0),
|
2016-11-15 07:10:52 -08:00
|
|
|
num_flexfec_streams_(0),
|
2016-06-13 07:34:51 -07:00
|
|
|
decoder_factory_(CreateBuiltinAudioDecoderFactory()),
|
2016-01-07 17:43:18 +01:00
|
|
|
fake_send_audio_device_(nullptr),
|
|
|
|
|
fake_recv_audio_device_(nullptr) {}
|
2014-10-22 12:15:24 +00:00
|
|
|
|
2014-06-27 08:47:52 +00:00
|
|
|
CallTest::~CallTest() {
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-08 06:47:13 -08:00
|
|
|
void CallTest::RunBaseTest(BaseTest* test) {
|
2016-01-07 17:43:18 +01:00
|
|
|
num_video_streams_ = test->GetNumVideoStreams();
|
|
|
|
|
num_audio_streams_ = test->GetNumAudioStreams();
|
2016-11-15 07:10:52 -08:00
|
|
|
num_flexfec_streams_ = test->GetNumFlexfecStreams();
|
2016-01-07 17:43:18 +01:00
|
|
|
RTC_DCHECK(num_video_streams_ > 0 || num_audio_streams_ > 0);
|
|
|
|
|
Call::Config send_config(test->GetSenderCallConfig());
|
|
|
|
|
if (num_audio_streams_ > 0) {
|
2017-03-23 03:40:03 -07:00
|
|
|
CreateFakeAudioDevices(test->CreateCapturer(), test->CreateRenderer());
|
|
|
|
|
test->OnFakeAudioDevicesCreated(fake_send_audio_device_.get(),
|
|
|
|
|
fake_recv_audio_device_.get());
|
2016-01-07 17:43:18 +01:00
|
|
|
CreateVoiceEngines();
|
|
|
|
|
AudioState::Config audio_state_config;
|
|
|
|
|
audio_state_config.voice_engine = voe_send_.voice_engine;
|
2016-11-17 06:48:48 -08:00
|
|
|
audio_state_config.audio_mixer = AudioMixerImpl::Create();
|
2016-01-07 17:43:18 +01:00
|
|
|
send_config.audio_state = AudioState::Create(audio_state_config);
|
|
|
|
|
}
|
|
|
|
|
CreateSenderCall(send_config);
|
|
|
|
|
if (test->ShouldCreateReceivers()) {
|
|
|
|
|
Call::Config recv_config(test->GetReceiverCallConfig());
|
|
|
|
|
if (num_audio_streams_ > 0) {
|
|
|
|
|
AudioState::Config audio_state_config;
|
|
|
|
|
audio_state_config.voice_engine = voe_recv_.voice_engine;
|
2016-11-17 06:48:48 -08:00
|
|
|
audio_state_config.audio_mixer = AudioMixerImpl::Create();
|
2016-01-07 17:43:18 +01:00
|
|
|
recv_config.audio_state = AudioState::Create(audio_state_config);
|
|
|
|
|
}
|
|
|
|
|
CreateReceiverCall(recv_config);
|
|
|
|
|
}
|
2016-01-14 20:34:30 +01:00
|
|
|
test->OnCallsCreated(sender_call_.get(), receiver_call_.get());
|
2016-01-08 06:47:13 -08:00
|
|
|
receive_transport_.reset(test->CreateReceiveTransport());
|
2016-07-26 04:44:06 -07:00
|
|
|
send_transport_.reset(test->CreateSendTransport(sender_call_.get()));
|
2014-06-27 08:47:52 +00:00
|
|
|
|
|
|
|
|
if (test->ShouldCreateReceivers()) {
|
2017-04-10 16:57:57 -07:00
|
|
|
send_transport_->SetReceiver(receiver_call_->Receiver());
|
|
|
|
|
receive_transport_->SetReceiver(sender_call_->Receiver());
|
2016-11-22 16:08:30 -08:00
|
|
|
if (num_video_streams_ > 0)
|
|
|
|
|
receiver_call_->SignalChannelNetworkState(MediaType::VIDEO, kNetworkUp);
|
|
|
|
|
if (num_audio_streams_ > 0)
|
|
|
|
|
receiver_call_->SignalChannelNetworkState(MediaType::AUDIO, kNetworkUp);
|
2014-06-27 08:47:52 +00:00
|
|
|
} else {
|
|
|
|
|
// Sender-only call delivers to itself.
|
2015-10-27 08:29:42 -07:00
|
|
|
send_transport_->SetReceiver(sender_call_->Receiver());
|
|
|
|
|
receive_transport_->SetReceiver(nullptr);
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
2016-11-15 07:10:52 -08:00
|
|
|
CreateSendConfig(num_video_streams_, num_audio_streams_, num_flexfec_streams_,
|
2016-01-07 17:43:18 +01:00
|
|
|
send_transport_.get());
|
2014-06-27 08:47:52 +00:00
|
|
|
if (test->ShouldCreateReceivers()) {
|
2015-10-27 08:29:42 -07:00
|
|
|
CreateMatchingReceiveConfigs(receive_transport_.get());
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
2016-01-07 17:43:18 +01:00
|
|
|
if (num_video_streams_ > 0) {
|
|
|
|
|
test->ModifyVideoConfigs(&video_send_config_, &video_receive_configs_,
|
|
|
|
|
&video_encoder_config_);
|
|
|
|
|
}
|
2016-11-15 07:10:52 -08:00
|
|
|
if (num_audio_streams_ > 0) {
|
2016-01-07 17:43:18 +01:00
|
|
|
test->ModifyAudioConfigs(&audio_send_config_, &audio_receive_configs_);
|
2016-11-15 07:10:52 -08:00
|
|
|
}
|
|
|
|
|
if (num_flexfec_streams_ > 0) {
|
|
|
|
|
test->ModifyFlexfecConfigs(&flexfec_receive_configs_);
|
|
|
|
|
}
|
2016-01-07 17:43:18 +01:00
|
|
|
|
2017-01-27 06:47:55 -08:00
|
|
|
if (num_flexfec_streams_ > 0) {
|
|
|
|
|
CreateFlexfecStreams();
|
|
|
|
|
test->OnFlexfecStreamsCreated(flexfec_receive_streams_);
|
|
|
|
|
}
|
2016-01-07 17:43:18 +01:00
|
|
|
if (num_video_streams_ > 0) {
|
|
|
|
|
CreateVideoStreams();
|
|
|
|
|
test->OnVideoStreamsCreated(video_send_stream_, video_receive_streams_);
|
|
|
|
|
}
|
|
|
|
|
if (num_audio_streams_ > 0) {
|
|
|
|
|
CreateAudioStreams();
|
|
|
|
|
test->OnAudioStreamsCreated(audio_send_stream_, audio_receive_streams_);
|
|
|
|
|
}
|
2014-06-27 08:47:52 +00:00
|
|
|
|
2016-01-14 20:34:30 +01:00
|
|
|
if (num_video_streams_ > 0) {
|
2016-10-02 23:45:26 -07:00
|
|
|
int width = kDefaultWidth;
|
|
|
|
|
int height = kDefaultHeight;
|
|
|
|
|
int frame_rate = kDefaultFramerate;
|
|
|
|
|
test->ModifyVideoCaptureStartResolution(&width, &height, &frame_rate);
|
|
|
|
|
CreateFrameGeneratorCapturer(frame_rate, width, height);
|
2016-01-14 20:34:30 +01:00
|
|
|
test->OnFrameGeneratorCapturerCreated(frame_generator_capturer_.get());
|
|
|
|
|
}
|
2014-06-27 08:47:52 +00:00
|
|
|
|
|
|
|
|
Start();
|
|
|
|
|
test->PerformTest();
|
2015-10-27 08:29:42 -07:00
|
|
|
send_transport_->StopSending();
|
|
|
|
|
receive_transport_->StopSending();
|
2014-06-27 08:47:52 +00:00
|
|
|
Stop();
|
|
|
|
|
|
|
|
|
|
DestroyStreams();
|
2016-01-07 17:43:18 +01:00
|
|
|
DestroyCalls();
|
|
|
|
|
if (num_audio_streams_ > 0)
|
|
|
|
|
DestroyVoiceEngines();
|
2017-03-23 03:40:03 -07:00
|
|
|
|
|
|
|
|
test->OnTestFinished();
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CallTest::Start() {
|
2016-01-07 17:43:18 +01:00
|
|
|
if (video_send_stream_)
|
|
|
|
|
video_send_stream_->Start();
|
|
|
|
|
for (VideoReceiveStream* video_recv_stream : video_receive_streams_)
|
|
|
|
|
video_recv_stream->Start();
|
|
|
|
|
if (audio_send_stream_) {
|
|
|
|
|
audio_send_stream_->Start();
|
|
|
|
|
}
|
|
|
|
|
for (AudioReceiveStream* audio_recv_stream : audio_receive_streams_)
|
|
|
|
|
audio_recv_stream->Start();
|
2016-11-15 07:10:52 -08:00
|
|
|
for (FlexfecReceiveStream* flexfec_recv_stream : flexfec_receive_streams_)
|
|
|
|
|
flexfec_recv_stream->Start();
|
2014-06-30 13:19:09 +00:00
|
|
|
if (frame_generator_capturer_.get() != NULL)
|
|
|
|
|
frame_generator_capturer_->Start();
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CallTest::Stop() {
|
2014-06-30 13:19:09 +00:00
|
|
|
if (frame_generator_capturer_.get() != NULL)
|
|
|
|
|
frame_generator_capturer_->Stop();
|
2016-11-15 07:10:52 -08:00
|
|
|
for (FlexfecReceiveStream* flexfec_recv_stream : flexfec_receive_streams_)
|
|
|
|
|
flexfec_recv_stream->Stop();
|
2016-01-07 17:43:18 +01:00
|
|
|
for (AudioReceiveStream* audio_recv_stream : audio_receive_streams_)
|
|
|
|
|
audio_recv_stream->Stop();
|
|
|
|
|
if (audio_send_stream_) {
|
|
|
|
|
audio_send_stream_->Stop();
|
|
|
|
|
}
|
|
|
|
|
for (VideoReceiveStream* video_recv_stream : video_receive_streams_)
|
|
|
|
|
video_recv_stream->Stop();
|
|
|
|
|
if (video_send_stream_)
|
|
|
|
|
video_send_stream_->Stop();
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CallTest::CreateCalls(const Call::Config& sender_config,
|
|
|
|
|
const Call::Config& receiver_config) {
|
|
|
|
|
CreateSenderCall(sender_config);
|
|
|
|
|
CreateReceiverCall(receiver_config);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CallTest::CreateSenderCall(const Call::Config& config) {
|
|
|
|
|
sender_call_.reset(Call::Create(config));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CallTest::CreateReceiverCall(const Call::Config& config) {
|
|
|
|
|
receiver_call_.reset(Call::Create(config));
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-22 10:49:27 +02:00
|
|
|
void CallTest::DestroyCalls() {
|
2016-01-07 17:43:18 +01:00
|
|
|
sender_call_.reset();
|
|
|
|
|
receiver_call_.reset();
|
2015-10-22 10:49:27 +02:00
|
|
|
}
|
|
|
|
|
|
2016-01-07 17:43:18 +01:00
|
|
|
void CallTest::CreateSendConfig(size_t num_video_streams,
|
|
|
|
|
size_t num_audio_streams,
|
2016-11-15 07:10:52 -08:00
|
|
|
size_t num_flexfec_streams,
|
2015-09-28 09:59:31 -07:00
|
|
|
Transport* send_transport) {
|
2016-01-07 17:43:18 +01:00
|
|
|
RTC_DCHECK(num_video_streams <= kNumSsrcs);
|
2016-11-28 15:21:39 -08:00
|
|
|
RTC_DCHECK_LE(num_audio_streams, 1);
|
|
|
|
|
RTC_DCHECK_LE(num_flexfec_streams, 1);
|
2016-01-07 17:43:18 +01:00
|
|
|
RTC_DCHECK(num_audio_streams == 0 || voe_send_.channel_id >= 0);
|
2016-01-14 20:34:30 +01:00
|
|
|
if (num_video_streams > 0) {
|
|
|
|
|
video_send_config_ = VideoSendStream::Config(send_transport);
|
|
|
|
|
video_send_config_.encoder_settings.encoder = &fake_encoder_;
|
|
|
|
|
video_send_config_.encoder_settings.payload_name = "FAKE";
|
|
|
|
|
video_send_config_.encoder_settings.payload_type =
|
|
|
|
|
kFakeVideoSendPayloadType;
|
|
|
|
|
video_send_config_.rtp.extensions.push_back(
|
2017-02-06 06:29:38 -08:00
|
|
|
RtpExtension(RtpExtension::kTransportSequenceNumberUri,
|
|
|
|
|
kTransportSequenceNumberExtensionId));
|
2016-10-02 23:45:26 -07:00
|
|
|
FillEncoderConfiguration(num_video_streams, &video_encoder_config_);
|
|
|
|
|
|
2016-01-14 20:34:30 +01:00
|
|
|
for (size_t i = 0; i < num_video_streams; ++i)
|
|
|
|
|
video_send_config_.rtp.ssrcs.push_back(kVideoSendSsrcs[i]);
|
|
|
|
|
video_send_config_.rtp.extensions.push_back(RtpExtension(
|
2016-05-26 11:24:55 -07:00
|
|
|
RtpExtension::kVideoRotationUri, kVideoRotationRtpExtensionId));
|
2016-01-14 20:34:30 +01:00
|
|
|
}
|
2016-01-07 17:43:18 +01:00
|
|
|
|
|
|
|
|
if (num_audio_streams > 0) {
|
|
|
|
|
audio_send_config_ = AudioSendStream::Config(send_transport);
|
|
|
|
|
audio_send_config_.voe_channel_id = voe_send_.channel_id;
|
|
|
|
|
audio_send_config_.rtp.ssrc = kAudioSendSsrc;
|
2016-10-27 00:23:06 -07:00
|
|
|
audio_send_config_.send_codec_spec.codec_inst =
|
2017-02-21 07:28:31 -08:00
|
|
|
CodecInst{kAudioSendPayloadType, "OPUS", 48000, 960, 2, 64000};
|
2016-01-07 17:43:18 +01:00
|
|
|
}
|
2016-11-15 07:10:52 -08:00
|
|
|
|
|
|
|
|
// TODO(brandtr): Update this when we support multistream protection.
|
|
|
|
|
if (num_flexfec_streams > 0) {
|
2017-01-16 06:59:19 -08:00
|
|
|
video_send_config_.rtp.flexfec.payload_type = kFlexfecPayloadType;
|
|
|
|
|
video_send_config_.rtp.flexfec.ssrc = kFlexfecSendSsrc;
|
2016-11-15 07:10:52 -08:00
|
|
|
video_send_config_.rtp.flexfec.protected_media_ssrcs = {kVideoSendSsrcs[0]};
|
|
|
|
|
}
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
2016-01-07 17:43:18 +01:00
|
|
|
void CallTest::CreateMatchingReceiveConfigs(Transport* rtcp_send_transport) {
|
2017-03-30 05:06:22 -07:00
|
|
|
video_receive_configs_.clear();
|
|
|
|
|
allocated_decoders_.clear();
|
2016-01-14 20:34:30 +01:00
|
|
|
if (num_video_streams_ > 0) {
|
|
|
|
|
RTC_DCHECK(!video_send_config_.rtp.ssrcs.empty());
|
|
|
|
|
VideoReceiveStream::Config video_config(rtcp_send_transport);
|
2017-02-06 06:29:38 -08:00
|
|
|
video_config.rtp.remb = false;
|
|
|
|
|
video_config.rtp.transport_cc = true;
|
2016-01-14 20:34:30 +01:00
|
|
|
video_config.rtp.local_ssrc = kReceiverLocalVideoSsrc;
|
|
|
|
|
for (const RtpExtension& extension : video_send_config_.rtp.extensions)
|
|
|
|
|
video_config.rtp.extensions.push_back(extension);
|
2016-09-30 06:19:08 -07:00
|
|
|
video_config.renderer = &fake_renderer_;
|
2016-01-14 20:34:30 +01:00
|
|
|
for (size_t i = 0; i < video_send_config_.rtp.ssrcs.size(); ++i) {
|
|
|
|
|
VideoReceiveStream::Decoder decoder =
|
|
|
|
|
test::CreateMatchingDecoder(video_send_config_.encoder_settings);
|
2016-03-31 10:24:26 -07:00
|
|
|
allocated_decoders_.push_back(
|
|
|
|
|
std::unique_ptr<VideoDecoder>(decoder.decoder));
|
2016-01-14 20:34:30 +01:00
|
|
|
video_config.decoders.clear();
|
|
|
|
|
video_config.decoders.push_back(decoder);
|
|
|
|
|
video_config.rtp.remote_ssrc = video_send_config_.rtp.ssrcs[i];
|
2016-06-10 17:58:01 +02:00
|
|
|
video_receive_configs_.push_back(video_config.Copy());
|
2016-01-14 20:34:30 +01:00
|
|
|
}
|
2016-01-07 17:43:18 +01:00
|
|
|
}
|
|
|
|
|
|
2016-11-28 15:21:39 -08:00
|
|
|
RTC_DCHECK_GE(1, num_audio_streams_);
|
2016-01-07 17:43:18 +01:00
|
|
|
if (num_audio_streams_ == 1) {
|
2016-10-27 00:23:06 -07:00
|
|
|
RTC_DCHECK_LE(0, voe_send_.channel_id);
|
2016-01-07 17:43:18 +01:00
|
|
|
AudioReceiveStream::Config audio_config;
|
|
|
|
|
audio_config.rtp.local_ssrc = kReceiverLocalAudioSsrc;
|
|
|
|
|
audio_config.rtcp_send_transport = rtcp_send_transport;
|
|
|
|
|
audio_config.voe_channel_id = voe_recv_.channel_id;
|
|
|
|
|
audio_config.rtp.remote_ssrc = audio_send_config_.rtp.ssrc;
|
2016-06-13 07:34:51 -07:00
|
|
|
audio_config.decoder_factory = decoder_factory_;
|
2017-04-10 16:57:57 -07:00
|
|
|
audio_config.decoder_map = {{kAudioSendPayloadType, {"opus", 48000, 2}}};
|
2016-01-07 17:43:18 +01:00
|
|
|
audio_receive_configs_.push_back(audio_config);
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
2016-11-15 07:10:52 -08:00
|
|
|
|
|
|
|
|
// TODO(brandtr): Update this when we support multistream protection.
|
|
|
|
|
RTC_DCHECK(num_flexfec_streams_ <= 1);
|
|
|
|
|
if (num_flexfec_streams_ == 1) {
|
2017-01-13 07:41:19 -08:00
|
|
|
FlexfecReceiveStream::Config config(rtcp_send_transport);
|
2016-12-08 04:17:53 -08:00
|
|
|
config.payload_type = kFlexfecPayloadType;
|
|
|
|
|
config.remote_ssrc = kFlexfecSendSsrc;
|
|
|
|
|
config.protected_media_ssrcs = {kVideoSendSsrcs[0]};
|
2017-01-17 01:33:54 -08:00
|
|
|
config.local_ssrc = kReceiverLocalVideoSsrc;
|
2016-12-21 06:37:18 -08:00
|
|
|
for (const RtpExtension& extension : video_send_config_.rtp.extensions)
|
|
|
|
|
config.rtp_header_extensions.push_back(extension);
|
2016-12-08 04:17:53 -08:00
|
|
|
flexfec_receive_configs_.push_back(config);
|
2016-11-15 07:10:52 -08:00
|
|
|
}
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
2016-02-10 10:54:47 -08:00
|
|
|
void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock,
|
2016-10-02 23:45:26 -07:00
|
|
|
float speed,
|
|
|
|
|
int framerate,
|
|
|
|
|
int width,
|
|
|
|
|
int height) {
|
2016-02-10 10:54:47 -08:00
|
|
|
frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create(
|
2016-10-02 23:45:26 -07:00
|
|
|
width, height, framerate * speed, clock));
|
2016-11-01 11:45:46 -07:00
|
|
|
video_send_stream_->SetSource(
|
|
|
|
|
frame_generator_capturer_.get(),
|
Reland of Add framerate to VideoSinkWants and ability to signal on overuse (patchset #1 id:1 of https://codereview.webrtc.org/2783183003/ )
Reason for revert:
Seem to be a flaky test rather than an issue with this cl. Creating reland, will add code to reduce flakiness to that test.
Original issue's description:
> Revert of Add framerate to VideoSinkWants and ability to signal on overuse (patchset #8 id:410001 of https://codereview.webrtc.org/2781433002/ )
>
> Reason for revert:
> This has resulted in failure of CallPerfTest.ReceivesCpuOveruseAndUnderuse test on the Win7 build bot https://build.chromium.org/p/client.webrtc.perf/builders/Win7/builds/1780
>
> Original issue's description:
> > Reland of Add framerate to VideoSinkWants and ability to signal on overuse (patchset #1 id:1 of https://codereview.webrtc.org/2764133002/ )
> >
> > Reason for revert:
> > Found issue with test case, will add fix to reland cl.
> >
> > Original issue's description:
> > > Revert of Add framerate to VideoSinkWants and ability to signal on overuse (patchset #14 id:250001 of https://codereview.webrtc.org/2716643002/ )
> > >
> > > Reason for revert:
> > > Breaks perf tests:
> > > https://build.chromium.org/p/client.webrtc.perf/builders/Win7/builds/1679
> > > https://build.chromium.org/p/client.webrtc.perf/builders/Android32%20Tests%20%28L%20Nexus5%29/builds/2325
> > >
> > > Original issue's description:
> > > > Add framerate to VideoSinkWants and ability to signal on overuse
> > > >
> > > > In ViEEncoder, try to reduce framerate instead of resolution if the
> > > > current degradation preference is maintain-resolution rather than
> > > > balanced.
> > > >
> > > > BUG=webrtc:4172
> > > >
> > > > Review-Url: https://codereview.webrtc.org/2716643002
> > > > Cr-Commit-Position: refs/heads/master@{#17327}
> > > > Committed: https://chromium.googlesource.com/external/webrtc/+/72acf2526177bb4dbb5103cd6e165eb4361a5ae6
> > >
> > > TBR=nisse@webrtc.org,magjed@webrtc.org,kthelgason@webrtc.org,ilnik@webrtc.org,stefan@webrtc.org,sprang@webrtc.org
> > > # Skipping CQ checks because original CL landed less than 1 days ago.
> > > NOPRESUBMIT=true
> > > NOTREECHECKS=true
> > > NOTRY=true
> > > BUG=webrtc:4172
> > >
> > > Review-Url: https://codereview.webrtc.org/2764133002
> > > Cr-Commit-Position: refs/heads/master@{#17331}
> > > Committed: https://chromium.googlesource.com/external/webrtc/+/8b45b11144c968b4173215c76f78c710c9a2ed0b
> >
> > TBR=nisse@webrtc.org,magjed@webrtc.org,kthelgason@webrtc.org,ilnik@webrtc.org,stefan@webrtc.org,skvlad@webrtc.org
> > # Not skipping CQ checks because original CL landed more than 1 days ago.
> > BUG=webrtc:4172
> >
> > Review-Url: https://codereview.webrtc.org/2781433002
> > Cr-Commit-Position: refs/heads/master@{#17474}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/3ea3c77e93121b1ab9d5e46641e6764f2cca0d51
>
> TBR=ilnik@webrtc.org,stefan@webrtc.org,asapersson@webrtc.org,sprang@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:4172
>
> Review-Url: https://codereview.webrtc.org/2783183003
> Cr-Commit-Position: refs/heads/master@{#17477}
> Committed: https://chromium.googlesource.com/external/webrtc/+/f9ed235c9b7248694edcb46feb1f29ce7456ab59
R=ilnik@webrtc.org,stefan@webrtc.org
BUG=webrtc:4172
Review-Url: https://codereview.webrtc.org/2789823002
Cr-Commit-Position: refs/heads/master@{#17498}
2017-04-02 23:53:04 -07:00
|
|
|
VideoSendStream::DegradationPreference::kMaintainFramerate);
|
2016-02-10 10:54:47 -08:00
|
|
|
}
|
|
|
|
|
|
2016-10-02 23:45:26 -07:00
|
|
|
void CallTest::CreateFrameGeneratorCapturer(int framerate,
|
|
|
|
|
int width,
|
|
|
|
|
int height) {
|
|
|
|
|
frame_generator_capturer_.reset(
|
|
|
|
|
test::FrameGeneratorCapturer::Create(width, height, framerate, clock_));
|
2016-11-01 11:45:46 -07:00
|
|
|
video_send_stream_->SetSource(
|
|
|
|
|
frame_generator_capturer_.get(),
|
Reland of Add framerate to VideoSinkWants and ability to signal on overuse (patchset #1 id:1 of https://codereview.webrtc.org/2783183003/ )
Reason for revert:
Seem to be a flaky test rather than an issue with this cl. Creating reland, will add code to reduce flakiness to that test.
Original issue's description:
> Revert of Add framerate to VideoSinkWants and ability to signal on overuse (patchset #8 id:410001 of https://codereview.webrtc.org/2781433002/ )
>
> Reason for revert:
> This has resulted in failure of CallPerfTest.ReceivesCpuOveruseAndUnderuse test on the Win7 build bot https://build.chromium.org/p/client.webrtc.perf/builders/Win7/builds/1780
>
> Original issue's description:
> > Reland of Add framerate to VideoSinkWants and ability to signal on overuse (patchset #1 id:1 of https://codereview.webrtc.org/2764133002/ )
> >
> > Reason for revert:
> > Found issue with test case, will add fix to reland cl.
> >
> > Original issue's description:
> > > Revert of Add framerate to VideoSinkWants and ability to signal on overuse (patchset #14 id:250001 of https://codereview.webrtc.org/2716643002/ )
> > >
> > > Reason for revert:
> > > Breaks perf tests:
> > > https://build.chromium.org/p/client.webrtc.perf/builders/Win7/builds/1679
> > > https://build.chromium.org/p/client.webrtc.perf/builders/Android32%20Tests%20%28L%20Nexus5%29/builds/2325
> > >
> > > Original issue's description:
> > > > Add framerate to VideoSinkWants and ability to signal on overuse
> > > >
> > > > In ViEEncoder, try to reduce framerate instead of resolution if the
> > > > current degradation preference is maintain-resolution rather than
> > > > balanced.
> > > >
> > > > BUG=webrtc:4172
> > > >
> > > > Review-Url: https://codereview.webrtc.org/2716643002
> > > > Cr-Commit-Position: refs/heads/master@{#17327}
> > > > Committed: https://chromium.googlesource.com/external/webrtc/+/72acf2526177bb4dbb5103cd6e165eb4361a5ae6
> > >
> > > TBR=nisse@webrtc.org,magjed@webrtc.org,kthelgason@webrtc.org,ilnik@webrtc.org,stefan@webrtc.org,sprang@webrtc.org
> > > # Skipping CQ checks because original CL landed less than 1 days ago.
> > > NOPRESUBMIT=true
> > > NOTREECHECKS=true
> > > NOTRY=true
> > > BUG=webrtc:4172
> > >
> > > Review-Url: https://codereview.webrtc.org/2764133002
> > > Cr-Commit-Position: refs/heads/master@{#17331}
> > > Committed: https://chromium.googlesource.com/external/webrtc/+/8b45b11144c968b4173215c76f78c710c9a2ed0b
> >
> > TBR=nisse@webrtc.org,magjed@webrtc.org,kthelgason@webrtc.org,ilnik@webrtc.org,stefan@webrtc.org,skvlad@webrtc.org
> > # Not skipping CQ checks because original CL landed more than 1 days ago.
> > BUG=webrtc:4172
> >
> > Review-Url: https://codereview.webrtc.org/2781433002
> > Cr-Commit-Position: refs/heads/master@{#17474}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/3ea3c77e93121b1ab9d5e46641e6764f2cca0d51
>
> TBR=ilnik@webrtc.org,stefan@webrtc.org,asapersson@webrtc.org,sprang@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:4172
>
> Review-Url: https://codereview.webrtc.org/2783183003
> Cr-Commit-Position: refs/heads/master@{#17477}
> Committed: https://chromium.googlesource.com/external/webrtc/+/f9ed235c9b7248694edcb46feb1f29ce7456ab59
R=ilnik@webrtc.org,stefan@webrtc.org
BUG=webrtc:4172
Review-Url: https://codereview.webrtc.org/2789823002
Cr-Commit-Position: refs/heads/master@{#17498}
2017-04-02 23:53:04 -07:00
|
|
|
VideoSendStream::DegradationPreference::kMaintainFramerate);
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
2015-07-28 08:20:59 -07:00
|
|
|
|
2017-03-23 03:40:03 -07:00
|
|
|
void CallTest::CreateFakeAudioDevices(
|
|
|
|
|
std::unique_ptr<FakeAudioDevice::Capturer> capturer,
|
|
|
|
|
std::unique_ptr<FakeAudioDevice::Renderer> renderer) {
|
2017-03-14 09:01:47 -07:00
|
|
|
fake_send_audio_device_.reset(new FakeAudioDevice(
|
2017-03-23 03:40:03 -07:00
|
|
|
std::move(capturer), nullptr, 1.f));
|
2017-03-14 09:01:47 -07:00
|
|
|
fake_recv_audio_device_.reset(new FakeAudioDevice(
|
2017-03-23 03:40:03 -07:00
|
|
|
nullptr, std::move(renderer), 1.f));
|
2016-01-07 17:43:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CallTest::CreateVideoStreams() {
|
|
|
|
|
RTC_DCHECK(video_send_stream_ == nullptr);
|
|
|
|
|
RTC_DCHECK(video_receive_streams_.empty());
|
|
|
|
|
RTC_DCHECK(audio_send_stream_ == nullptr);
|
|
|
|
|
RTC_DCHECK(audio_receive_streams_.empty());
|
2014-06-27 08:47:52 +00:00
|
|
|
|
2015-12-21 03:14:00 -08:00
|
|
|
video_send_stream_ = sender_call_->CreateVideoSendStream(
|
2016-09-01 01:17:40 -07:00
|
|
|
video_send_config_.Copy(), video_encoder_config_.Copy());
|
2015-12-21 03:14:00 -08:00
|
|
|
for (size_t i = 0; i < video_receive_configs_.size(); ++i) {
|
2016-06-10 17:58:01 +02:00
|
|
|
video_receive_streams_.push_back(receiver_call_->CreateVideoReceiveStream(
|
|
|
|
|
video_receive_configs_[i].Copy()));
|
2014-06-30 13:19:09 +00:00
|
|
|
}
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
2016-04-19 15:01:23 +02:00
|
|
|
void CallTest::SetFakeVideoCaptureRotation(VideoRotation rotation) {
|
|
|
|
|
frame_generator_capturer_->SetFakeRotation(rotation);
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-07 17:43:18 +01:00
|
|
|
void CallTest::CreateAudioStreams() {
|
|
|
|
|
audio_send_stream_ = sender_call_->CreateAudioSendStream(audio_send_config_);
|
|
|
|
|
for (size_t i = 0; i < audio_receive_configs_.size(); ++i) {
|
|
|
|
|
audio_receive_streams_.push_back(
|
|
|
|
|
receiver_call_->CreateAudioReceiveStream(audio_receive_configs_[i]));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-15 07:10:52 -08:00
|
|
|
void CallTest::CreateFlexfecStreams() {
|
|
|
|
|
for (size_t i = 0; i < flexfec_receive_configs_.size(); ++i) {
|
|
|
|
|
flexfec_receive_streams_.push_back(
|
|
|
|
|
receiver_call_->CreateFlexfecReceiveStream(
|
|
|
|
|
flexfec_receive_configs_[i]));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-27 08:47:52 +00:00
|
|
|
void CallTest::DestroyStreams() {
|
2016-01-07 17:43:18 +01:00
|
|
|
if (audio_send_stream_)
|
|
|
|
|
sender_call_->DestroyAudioSendStream(audio_send_stream_);
|
|
|
|
|
audio_send_stream_ = nullptr;
|
|
|
|
|
for (AudioReceiveStream* audio_recv_stream : audio_receive_streams_)
|
|
|
|
|
receiver_call_->DestroyAudioReceiveStream(audio_recv_stream);
|
2017-01-27 06:47:55 -08:00
|
|
|
|
|
|
|
|
if (video_send_stream_)
|
|
|
|
|
sender_call_->DestroyVideoSendStream(video_send_stream_);
|
|
|
|
|
video_send_stream_ = nullptr;
|
2017-03-07 04:21:04 -08:00
|
|
|
|
2017-01-27 06:47:55 -08:00
|
|
|
for (VideoReceiveStream* video_recv_stream : video_receive_streams_)
|
|
|
|
|
receiver_call_->DestroyVideoReceiveStream(video_recv_stream);
|
2016-01-07 17:43:18 +01:00
|
|
|
|
2016-11-15 07:10:52 -08:00
|
|
|
for (FlexfecReceiveStream* flexfec_recv_stream : flexfec_receive_streams_)
|
|
|
|
|
receiver_call_->DestroyFlexfecReceiveStream(flexfec_recv_stream);
|
|
|
|
|
|
|
|
|
|
video_receive_streams_.clear();
|
2014-10-29 15:28:39 +00:00
|
|
|
allocated_decoders_.clear();
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
2016-01-07 17:43:18 +01:00
|
|
|
void CallTest::CreateVoiceEngines() {
|
|
|
|
|
voe_send_.voice_engine = VoiceEngine::Create();
|
|
|
|
|
voe_send_.base = VoEBase::GetInterface(voe_send_.voice_engine);
|
2016-06-13 07:34:51 -07:00
|
|
|
EXPECT_EQ(0, voe_send_.base->Init(fake_send_audio_device_.get(), nullptr,
|
|
|
|
|
decoder_factory_));
|
2016-09-07 07:34:41 -07:00
|
|
|
VoEBase::ChannelConfig config;
|
|
|
|
|
config.enable_voice_pacing = true;
|
|
|
|
|
voe_send_.channel_id = voe_send_.base->CreateChannel(config);
|
2016-01-07 17:43:18 +01:00
|
|
|
EXPECT_GE(voe_send_.channel_id, 0);
|
|
|
|
|
|
|
|
|
|
voe_recv_.voice_engine = VoiceEngine::Create();
|
|
|
|
|
voe_recv_.base = VoEBase::GetInterface(voe_recv_.voice_engine);
|
2016-06-13 07:34:51 -07:00
|
|
|
EXPECT_EQ(0, voe_recv_.base->Init(fake_recv_audio_device_.get(), nullptr,
|
|
|
|
|
decoder_factory_));
|
2016-01-07 17:43:18 +01:00
|
|
|
voe_recv_.channel_id = voe_recv_.base->CreateChannel();
|
|
|
|
|
EXPECT_GE(voe_recv_.channel_id, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CallTest::DestroyVoiceEngines() {
|
|
|
|
|
voe_recv_.base->DeleteChannel(voe_recv_.channel_id);
|
|
|
|
|
voe_recv_.channel_id = -1;
|
|
|
|
|
voe_recv_.base->Release();
|
|
|
|
|
voe_recv_.base = nullptr;
|
|
|
|
|
|
|
|
|
|
voe_send_.base->DeleteChannel(voe_send_.channel_id);
|
|
|
|
|
voe_send_.channel_id = -1;
|
|
|
|
|
voe_send_.base->Release();
|
|
|
|
|
voe_send_.base = nullptr;
|
|
|
|
|
|
|
|
|
|
VoiceEngine::Delete(voe_send_.voice_engine);
|
|
|
|
|
voe_send_.voice_engine = nullptr;
|
|
|
|
|
VoiceEngine::Delete(voe_recv_.voice_engine);
|
|
|
|
|
voe_recv_.voice_engine = nullptr;
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-02 23:45:26 -07:00
|
|
|
const int CallTest::kDefaultWidth;
|
|
|
|
|
const int CallTest::kDefaultHeight;
|
|
|
|
|
const int CallTest::kDefaultFramerate;
|
2015-12-10 13:02:50 +01:00
|
|
|
const int CallTest::kDefaultTimeoutMs = 30 * 1000;
|
|
|
|
|
const int CallTest::kLongTimeoutMs = 120 * 1000;
|
2016-01-07 17:43:18 +01:00
|
|
|
const uint8_t CallTest::kVideoSendPayloadType = 100;
|
|
|
|
|
const uint8_t CallTest::kFakeVideoSendPayloadType = 125;
|
2014-06-27 08:47:52 +00:00
|
|
|
const uint8_t CallTest::kSendRtxPayloadType = 98;
|
2014-09-04 06:48:14 +00:00
|
|
|
const uint8_t CallTest::kRedPayloadType = 118;
|
2015-04-21 20:24:50 +08:00
|
|
|
const uint8_t CallTest::kRtxRedPayloadType = 99;
|
2014-09-04 06:48:14 +00:00
|
|
|
const uint8_t CallTest::kUlpfecPayloadType = 119;
|
2016-11-15 07:10:52 -08:00
|
|
|
const uint8_t CallTest::kFlexfecPayloadType = 120;
|
2016-01-07 17:43:18 +01:00
|
|
|
const uint8_t CallTest::kAudioSendPayloadType = 103;
|
2014-07-07 13:06:48 +00:00
|
|
|
const uint32_t CallTest::kSendRtxSsrcs[kNumSsrcs] = {0xBADCAFD, 0xBADCAFE,
|
|
|
|
|
0xBADCAFF};
|
2016-01-07 17:43:18 +01:00
|
|
|
const uint32_t CallTest::kVideoSendSsrcs[kNumSsrcs] = {0xC0FFED, 0xC0FFEE,
|
|
|
|
|
0xC0FFEF};
|
|
|
|
|
const uint32_t CallTest::kAudioSendSsrc = 0xDEADBEEF;
|
2016-11-15 07:10:52 -08:00
|
|
|
const uint32_t CallTest::kFlexfecSendSsrc = 0xBADBEEF;
|
2016-01-07 17:43:18 +01:00
|
|
|
const uint32_t CallTest::kReceiverLocalVideoSsrc = 0x123456;
|
|
|
|
|
const uint32_t CallTest::kReceiverLocalAudioSsrc = 0x1234567;
|
2014-06-27 08:47:52 +00:00
|
|
|
const int CallTest::kNackRtpHistoryMs = 1000;
|
|
|
|
|
|
2017-04-10 16:57:57 -07:00
|
|
|
const std::map<uint8_t, MediaType> CallTest::payload_type_map_ = {
|
|
|
|
|
{CallTest::kVideoSendPayloadType, MediaType::VIDEO},
|
|
|
|
|
{CallTest::kFakeVideoSendPayloadType, MediaType::VIDEO},
|
|
|
|
|
{CallTest::kSendRtxPayloadType, MediaType::VIDEO},
|
|
|
|
|
{CallTest::kRedPayloadType, MediaType::VIDEO},
|
|
|
|
|
{CallTest::kRtxRedPayloadType, MediaType::VIDEO},
|
|
|
|
|
{CallTest::kUlpfecPayloadType, MediaType::VIDEO},
|
|
|
|
|
{CallTest::kFlexfecPayloadType, MediaType::VIDEO},
|
|
|
|
|
{CallTest::kAudioSendPayloadType, MediaType::AUDIO}};
|
|
|
|
|
|
2017-04-10 03:54:05 -07:00
|
|
|
BaseTest::BaseTest() : event_log_(RtcEventLog::CreateNull()) {}
|
2017-03-21 03:24:27 -07:00
|
|
|
|
2017-04-10 03:54:05 -07:00
|
|
|
BaseTest::BaseTest(unsigned int timeout_ms)
|
|
|
|
|
: RtpRtcpObserver(timeout_ms), event_log_(RtcEventLog::CreateNull()) {}
|
2014-06-27 08:47:52 +00:00
|
|
|
|
|
|
|
|
BaseTest::~BaseTest() {
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-23 03:40:03 -07:00
|
|
|
std::unique_ptr<FakeAudioDevice::Capturer> BaseTest::CreateCapturer() {
|
|
|
|
|
return FakeAudioDevice::CreatePulsedNoiseCapturer(256, 48000);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::unique_ptr<FakeAudioDevice::Renderer> BaseTest::CreateRenderer() {
|
|
|
|
|
return FakeAudioDevice::CreateDiscardRenderer(48000);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void BaseTest::OnFakeAudioDevicesCreated(FakeAudioDevice* send_audio_device,
|
|
|
|
|
FakeAudioDevice* recv_audio_device) {
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-27 08:47:52 +00:00
|
|
|
Call::Config BaseTest::GetSenderCallConfig() {
|
2017-04-10 03:54:05 -07:00
|
|
|
return Call::Config(event_log_.get());
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Call::Config BaseTest::GetReceiverCallConfig() {
|
2017-04-10 03:54:05 -07:00
|
|
|
return Call::Config(event_log_.get());
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void BaseTest::OnCallsCreated(Call* sender_call, Call* receiver_call) {
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-08 06:47:13 -08:00
|
|
|
test::PacketTransport* BaseTest::CreateSendTransport(Call* sender_call) {
|
|
|
|
|
return new PacketTransport(sender_call, this, test::PacketTransport::kSender,
|
2017-04-10 16:57:57 -07:00
|
|
|
CallTest::payload_type_map_,
|
2016-01-08 06:47:13 -08:00
|
|
|
FakeNetworkPipe::Config());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
test::PacketTransport* BaseTest::CreateReceiveTransport() {
|
|
|
|
|
return new PacketTransport(nullptr, this, test::PacketTransport::kReceiver,
|
2017-04-10 16:57:57 -07:00
|
|
|
CallTest::payload_type_map_,
|
2016-01-08 06:47:13 -08:00
|
|
|
FakeNetworkPipe::Config());
|
|
|
|
|
}
|
2015-10-27 08:29:42 -07:00
|
|
|
|
2016-01-07 17:43:18 +01:00
|
|
|
size_t BaseTest::GetNumVideoStreams() const {
|
2014-06-27 08:47:52 +00:00
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-07 17:43:18 +01:00
|
|
|
size_t BaseTest::GetNumAudioStreams() const {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-15 07:10:52 -08:00
|
|
|
size_t BaseTest::GetNumFlexfecStreams() const {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-21 03:14:00 -08:00
|
|
|
void BaseTest::ModifyVideoConfigs(
|
2014-06-30 13:19:09 +00:00
|
|
|
VideoSendStream::Config* send_config,
|
|
|
|
|
std::vector<VideoReceiveStream::Config>* receive_configs,
|
2015-12-21 03:14:00 -08:00
|
|
|
VideoEncoderConfig* encoder_config) {}
|
2014-06-27 08:47:52 +00:00
|
|
|
|
2016-10-02 23:45:26 -07:00
|
|
|
void BaseTest::ModifyVideoCaptureStartResolution(int* width,
|
|
|
|
|
int* heigt,
|
|
|
|
|
int* frame_rate) {}
|
|
|
|
|
|
2015-12-21 03:14:00 -08:00
|
|
|
void BaseTest::OnVideoStreamsCreated(
|
2014-06-30 13:19:09 +00:00
|
|
|
VideoSendStream* send_stream,
|
2015-12-21 03:14:00 -08:00
|
|
|
const std::vector<VideoReceiveStream*>& receive_streams) {}
|
2014-06-27 08:47:52 +00:00
|
|
|
|
2016-01-07 17:43:18 +01:00
|
|
|
void BaseTest::ModifyAudioConfigs(
|
|
|
|
|
AudioSendStream::Config* send_config,
|
|
|
|
|
std::vector<AudioReceiveStream::Config>* receive_configs) {}
|
|
|
|
|
|
|
|
|
|
void BaseTest::OnAudioStreamsCreated(
|
|
|
|
|
AudioSendStream* send_stream,
|
|
|
|
|
const std::vector<AudioReceiveStream*>& receive_streams) {}
|
|
|
|
|
|
2016-11-15 07:10:52 -08:00
|
|
|
void BaseTest::ModifyFlexfecConfigs(
|
|
|
|
|
std::vector<FlexfecReceiveStream::Config>* receive_configs) {}
|
|
|
|
|
|
|
|
|
|
void BaseTest::OnFlexfecStreamsCreated(
|
|
|
|
|
const std::vector<FlexfecReceiveStream*>& receive_streams) {}
|
|
|
|
|
|
2014-06-27 08:47:52 +00:00
|
|
|
void BaseTest::OnFrameGeneratorCapturerCreated(
|
|
|
|
|
FrameGeneratorCapturer* frame_generator_capturer) {
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-23 03:40:03 -07:00
|
|
|
void BaseTest::OnTestFinished() {
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-27 08:47:52 +00:00
|
|
|
SendTest::SendTest(unsigned int timeout_ms) : BaseTest(timeout_ms) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool SendTest::ShouldCreateReceivers() const {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-21 03:24:27 -07:00
|
|
|
EndToEndTest::EndToEndTest() {}
|
|
|
|
|
|
2014-06-27 08:47:52 +00:00
|
|
|
EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool EndToEndTest::ShouldCreateReceivers() const {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace test
|
|
|
|
|
} // namespace webrtc
|