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

Side by Side Diff: webrtc/call/bitrate_estimator_tests.cc

Issue 1542653002: Add audio streams to CallTest and a first A/V call test. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comment addressed Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/call/call_perf_tests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #include <functional> 10 #include <functional>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 config.audio_state = AudioState::Create(audio_state_config); 113 config.audio_state = AudioState::Create(audio_state_config);
114 receiver_call_.reset(Call::Create(config)); 114 receiver_call_.reset(Call::Create(config));
115 sender_call_.reset(Call::Create(config)); 115 sender_call_.reset(Call::Create(config));
116 116
117 send_transport_.reset(new test::DirectTransport(sender_call_.get())); 117 send_transport_.reset(new test::DirectTransport(sender_call_.get()));
118 send_transport_->SetReceiver(receiver_call_->Receiver()); 118 send_transport_->SetReceiver(receiver_call_->Receiver());
119 receive_transport_.reset(new test::DirectTransport(receiver_call_.get())); 119 receive_transport_.reset(new test::DirectTransport(receiver_call_.get()));
120 receive_transport_->SetReceiver(sender_call_->Receiver()); 120 receive_transport_->SetReceiver(sender_call_->Receiver());
121 121
122 video_send_config_ = VideoSendStream::Config(send_transport_.get()); 122 video_send_config_ = VideoSendStream::Config(send_transport_.get());
123 video_send_config_.rtp.ssrcs.push_back(kSendSsrcs[0]); 123 video_send_config_.rtp.ssrcs.push_back(kVideoSendSsrcs[0]);
124 // Encoders will be set separately per stream. 124 // Encoders will be set separately per stream.
125 video_send_config_.encoder_settings.encoder = nullptr; 125 video_send_config_.encoder_settings.encoder = nullptr;
126 video_send_config_.encoder_settings.payload_name = "FAKE"; 126 video_send_config_.encoder_settings.payload_name = "FAKE";
127 video_send_config_.encoder_settings.payload_type = kFakeSendPayloadType; 127 video_send_config_.encoder_settings.payload_type =
128 kFakeVideoSendPayloadType;
128 video_encoder_config_.streams = test::CreateVideoStreams(1); 129 video_encoder_config_.streams = test::CreateVideoStreams(1);
129 130
130 receive_config_ = VideoReceiveStream::Config(receive_transport_.get()); 131 receive_config_ = VideoReceiveStream::Config(receive_transport_.get());
131 // receive_config_.decoders will be set by every stream separately. 132 // receive_config_.decoders will be set by every stream separately.
132 receive_config_.rtp.remote_ssrc = video_send_config_.rtp.ssrcs[0]; 133 receive_config_.rtp.remote_ssrc = video_send_config_.rtp.ssrcs[0];
133 receive_config_.rtp.local_ssrc = kReceiverLocalSsrc; 134 receive_config_.rtp.local_ssrc = kReceiverLocalVideoSsrc;
134 receive_config_.rtp.remb = true; 135 receive_config_.rtp.remb = true;
135 receive_config_.rtp.extensions.push_back( 136 receive_config_.rtp.extensions.push_back(
136 RtpExtension(RtpExtension::kTOffset, kTOFExtensionId)); 137 RtpExtension(RtpExtension::kTOffset, kTOFExtensionId));
137 receive_config_.rtp.extensions.push_back( 138 receive_config_.rtp.extensions.push_back(
138 RtpExtension(RtpExtension::kAbsSendTime, kASTExtensionId)); 139 RtpExtension(RtpExtension::kAbsSendTime, kASTExtensionId));
139 } 140 }
140 141
141 virtual void TearDown() { 142 virtual void TearDown() {
142 std::for_each(streams_.begin(), streams_.end(), 143 std::for_each(streams_.begin(), streams_.end(),
143 std::mem_fun(&Stream::StopSending)); 144 std::mem_fun(&Stream::StopSending));
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 RtpExtension(RtpExtension::kTOffset, kTOFExtensionId); 344 RtpExtension(RtpExtension::kTOffset, kTOFExtensionId);
344 receiver_log_.PushExpectedLogLine( 345 receiver_log_.PushExpectedLogLine(
345 "WrappingBitrateEstimator: Switching to transmission time offset RBE."); 346 "WrappingBitrateEstimator: Switching to transmission time offset RBE.");
346 receiver_log_.PushExpectedLogLine(kSingleStreamLog); 347 receiver_log_.PushExpectedLogLine(kSingleStreamLog);
347 streams_.push_back(new Stream(this, false)); 348 streams_.push_back(new Stream(this, false));
348 streams_[0]->StopSending(); 349 streams_[0]->StopSending();
349 streams_[1]->StopSending(); 350 streams_[1]->StopSending();
350 EXPECT_TRUE(receiver_log_.Wait()); 351 EXPECT_TRUE(receiver_log_.Wait());
351 } 352 }
352 } // namespace webrtc 353 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/call/call_perf_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698