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

Side by Side Diff: webrtc/test/call_test.cc

Issue 2593963003: Revert "Revert of Parse FlexFEC RTP headers in Call and add integration with BWE. (patchset #17 id:… (Closed)
Patch Set: Enable RTP header extensions for FlexFEC in tests. Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 10
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 audio_receive_configs_.push_back(audio_config); 272 audio_receive_configs_.push_back(audio_config);
273 } 273 }
274 274
275 // TODO(brandtr): Update this when we support multistream protection. 275 // TODO(brandtr): Update this when we support multistream protection.
276 RTC_DCHECK(num_flexfec_streams_ <= 1); 276 RTC_DCHECK(num_flexfec_streams_ <= 1);
277 if (num_flexfec_streams_ == 1) { 277 if (num_flexfec_streams_ == 1) {
278 FlexfecReceiveStream::Config config; 278 FlexfecReceiveStream::Config config;
279 config.payload_type = kFlexfecPayloadType; 279 config.payload_type = kFlexfecPayloadType;
280 config.remote_ssrc = kFlexfecSendSsrc; 280 config.remote_ssrc = kFlexfecSendSsrc;
281 config.protected_media_ssrcs = {kVideoSendSsrcs[0]}; 281 config.protected_media_ssrcs = {kVideoSendSsrcs[0]};
282 for (const RtpExtension& extension : video_send_config_.rtp.extensions)
283 config.rtp_header_extensions.push_back(extension);
282 flexfec_receive_configs_.push_back(config); 284 flexfec_receive_configs_.push_back(config);
283 } 285 }
284 } 286 }
285 287
286 void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock, 288 void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock,
287 float speed, 289 float speed,
288 int framerate, 290 int framerate,
289 int width, 291 int width,
290 int height) { 292 int height) {
291 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create( 293 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create(
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 508
507 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { 509 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) {
508 } 510 }
509 511
510 bool EndToEndTest::ShouldCreateReceivers() const { 512 bool EndToEndTest::ShouldCreateReceivers() const {
511 return true; 513 return true;
512 } 514 }
513 515
514 } // namespace test 516 } // namespace test
515 } // namespace webrtc 517 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_packet.cc ('k') | webrtc/test/fuzzers/flexfec_receiver_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698