Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Unified Diff: webrtc/test/call_test.cc

Issue 2981513002: Wire up RTP keep-alive in ortc api. (Closed)
Patch Set: deps, again Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/test/call_test.h ('k') | webrtc/video/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/call_test.cc
diff --git a/webrtc/test/call_test.cc b/webrtc/test/call_test.cc
index 6e04fd64ae1a23eafe2539d0f05e7f8c04fb3175..e1de53ed17410dcf79c0381916edff7ff4c6a3aa 100644
--- a/webrtc/test/call_test.cc
+++ b/webrtc/test/call_test.cc
@@ -14,12 +14,12 @@
#include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h"
#include "webrtc/api/audio_codecs/builtin_audio_encoder_factory.h"
+#include "webrtc/call/rtp_transport_controller_send.h"
#include "webrtc/config.h"
#include "webrtc/modules/audio_mixer/audio_mixer_impl.h"
#include "webrtc/rtc_base/checks.h"
#include "webrtc/test/testsupport/fileutils.h"
#include "webrtc/voice_engine/include/voe_base.h"
-
namespace webrtc {
namespace test {
@@ -30,6 +30,7 @@ const int kVideoRotationRtpExtensionId = 4;
CallTest::CallTest()
: clock_(Clock::GetRealTimeClock()),
event_log_(RtcEventLog::CreateNull()),
+ sender_call_transport_controller_(nullptr),
video_send_config_(nullptr),
video_send_stream_(nullptr),
audio_send_config_(nullptr),
@@ -66,6 +67,10 @@ void CallTest::RunBaseTest(BaseTest* test) {
send_config.audio_state = AudioState::Create(audio_state_config);
}
CreateSenderCall(send_config);
+ if (sender_call_transport_controller_ != nullptr) {
+ test->OnRtpTransportControllerSendCreated(
+ sender_call_transport_controller_);
+ }
if (test->ShouldCreateReceivers()) {
Call::Config recv_config(test->GetReceiverCallConfig());
if (num_audio_streams_ > 0) {
@@ -185,7 +190,12 @@ void CallTest::CreateCalls(const Call::Config& sender_config,
}
void CallTest::CreateSenderCall(const Call::Config& config) {
- sender_call_.reset(Call::Create(config));
+ sender_call_transport_controller_ = new RtpTransportControllerSend(
+ Clock::GetRealTimeClock(), config.event_log);
+
+ sender_call_.reset(
+ Call::Create(config, std::unique_ptr<RtpTransportControllerSend>(
+ sender_call_transport_controller_)));
}
void CallTest::CreateReceiverCall(const Call::Config& config) {
@@ -505,6 +515,9 @@ Call::Config BaseTest::GetReceiverCallConfig() {
return Call::Config(event_log_.get());
}
+void BaseTest::OnRtpTransportControllerSendCreated(
+ RtpTransportControllerSend* controller) {}
+
void BaseTest::OnCallsCreated(Call* sender_call, Call* receiver_call) {
}
« no previous file with comments | « webrtc/test/call_test.h ('k') | webrtc/video/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698