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

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

Issue 2042603002: Movable support for VideoReceiveStream::Config and avoid copies (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add TODO Created 4 years, 6 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 | « webrtc/call.h ('k') | webrtc/call/call.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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 decoder.payload_type = 198 decoder.payload_type =
199 test_->video_send_config_.encoder_settings.payload_type; 199 test_->video_send_config_.encoder_settings.payload_type;
200 decoder.payload_name = 200 decoder.payload_name =
201 test_->video_send_config_.encoder_settings.payload_name; 201 test_->video_send_config_.encoder_settings.payload_name;
202 test_->receive_config_.decoders.clear(); 202 test_->receive_config_.decoders.clear();
203 test_->receive_config_.decoders.push_back(decoder); 203 test_->receive_config_.decoders.push_back(decoder);
204 test_->receive_config_.rtp.remote_ssrc = 204 test_->receive_config_.rtp.remote_ssrc =
205 test_->video_send_config_.rtp.ssrcs[0]; 205 test_->video_send_config_.rtp.ssrcs[0];
206 test_->receive_config_.rtp.local_ssrc++; 206 test_->receive_config_.rtp.local_ssrc++;
207 video_receive_stream_ = test_->receiver_call_->CreateVideoReceiveStream( 207 video_receive_stream_ = test_->receiver_call_->CreateVideoReceiveStream(
208 test_->receive_config_); 208 test_->receive_config_.Copy());
209 video_receive_stream_->Start(); 209 video_receive_stream_->Start();
210 } 210 }
211 is_sending_receiving_ = true; 211 is_sending_receiving_ = true;
212 } 212 }
213 213
214 ~Stream() { 214 ~Stream() {
215 EXPECT_FALSE(is_sending_receiving_); 215 EXPECT_FALSE(is_sending_receiving_);
216 frame_generator_capturer_.reset(nullptr); 216 frame_generator_capturer_.reset(nullptr);
217 test_->sender_call_->DestroyVideoSendStream(send_stream_); 217 test_->sender_call_->DestroyVideoSendStream(send_stream_);
218 send_stream_ = nullptr; 218 send_stream_ = nullptr;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 RtpExtension(RtpExtension::kTimestampOffsetUri, kTOFExtensionId); 323 RtpExtension(RtpExtension::kTimestampOffsetUri, kTOFExtensionId);
324 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog); 324 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog);
325 receiver_log_.PushExpectedLogLine( 325 receiver_log_.PushExpectedLogLine(
326 "WrappingBitrateEstimator: Switching to transmission time offset RBE."); 326 "WrappingBitrateEstimator: Switching to transmission time offset RBE.");
327 streams_.push_back(new Stream(this, false)); 327 streams_.push_back(new Stream(this, false));
328 streams_[0]->StopSending(); 328 streams_[0]->StopSending();
329 streams_[1]->StopSending(); 329 streams_[1]->StopSending();
330 EXPECT_TRUE(receiver_log_.Wait()); 330 EXPECT_TRUE(receiver_log_.Wait());
331 } 331 }
332 } // namespace webrtc 332 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/call.h ('k') | webrtc/call/call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698