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

Unified Diff: webrtc/video/bitrate_estimator_tests.cc

Issue 1273363005: Add send transports to individual webrtc::Call streams. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase+comment Created 5 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.cc ('k') | webrtc/video/call.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/bitrate_estimator_tests.cc
diff --git a/webrtc/video/bitrate_estimator_tests.cc b/webrtc/video/bitrate_estimator_tests.cc
index cb6ef0ebf89620288b992ad88dec5a419f1276ab..059de351d3c1b2b6a093fecc9d8b251ca8b312ff 100644
--- a/webrtc/video/bitrate_estimator_tests.cc
+++ b/webrtc/video/bitrate_estimator_tests.cc
@@ -121,7 +121,7 @@ class BitrateEstimatorTest : public test::CallTest {
receive_transport_(),
sender_call_(),
receiver_call_(),
- receive_config_(),
+ receive_config_(nullptr),
streams_() {
}
@@ -130,16 +130,13 @@ class BitrateEstimatorTest : public test::CallTest {
}
virtual void SetUp() {
- Call::Config receiver_call_config(&receive_transport_);
- receiver_call_.reset(Call::Create(receiver_call_config));
-
- Call::Config sender_call_config(&send_transport_);
- sender_call_.reset(Call::Create(sender_call_config));
+ receiver_call_.reset(Call::Create(Call::Config()));
+ sender_call_.reset(Call::Create(Call::Config()));
send_transport_.SetReceiver(receiver_call_->Receiver());
receive_transport_.SetReceiver(sender_call_->Receiver());
- send_config_ = VideoSendStream::Config();
+ send_config_ = VideoSendStream::Config(&send_transport_);
send_config_.rtp.ssrcs.push_back(kSendSsrcs[0]);
// Encoders will be set separately per stream.
send_config_.encoder_settings.encoder = nullptr;
@@ -147,7 +144,7 @@ class BitrateEstimatorTest : public test::CallTest {
send_config_.encoder_settings.payload_type = kFakeSendPayloadType;
encoder_config_.streams = test::CreateVideoStreams(1);
- receive_config_ = VideoReceiveStream::Config();
+ receive_config_ = VideoReceiveStream::Config(&receive_transport_);
// receive_config_.decoders will be set by every stream separately.
receive_config_.rtp.remote_ssrc = send_config_.rtp.ssrcs[0];
receive_config_.rtp.local_ssrc = kReceiverLocalSsrc;
« no previous file with comments | « webrtc/test/call_test.cc ('k') | webrtc/video/call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698