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

Side by Side Diff: video/video_quality_test.cc

Issue 3010003002: Set protected_by_flexfec flag properly in tests. (Closed)
Patch Set: Rebase. Created 3 years, 2 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 | « test/call_test.cc ('k') | no next file » | 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 "video/video_quality_test.h" 10 #include "video/video_quality_test.h"
(...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 flexfec_receive_config.transport_cc = params_.call.send_side_bwe; 1532 flexfec_receive_config.transport_cc = params_.call.send_side_bwe;
1533 if (params_.call.send_side_bwe) { 1533 if (params_.call.send_side_bwe) {
1534 flexfec_receive_config.rtp_header_extensions.push_back( 1534 flexfec_receive_config.rtp_header_extensions.push_back(
1535 RtpExtension(RtpExtension::kTransportSequenceNumberUri, 1535 RtpExtension(RtpExtension::kTransportSequenceNumberUri,
1536 test::kTransportSequenceNumberExtensionId)); 1536 test::kTransportSequenceNumberExtensionId));
1537 } else { 1537 } else {
1538 flexfec_receive_config.rtp_header_extensions.push_back(RtpExtension( 1538 flexfec_receive_config.rtp_header_extensions.push_back(RtpExtension(
1539 RtpExtension::kAbsSendTimeUri, test::kAbsSendTimeExtensionId)); 1539 RtpExtension::kAbsSendTimeUri, test::kAbsSendTimeExtensionId));
1540 } 1540 }
1541 flexfec_receive_configs_.push_back(flexfec_receive_config); 1541 flexfec_receive_configs_.push_back(flexfec_receive_config);
1542 if (num_video_streams > 0) {
1543 video_receive_configs_[0].rtp.protected_by_flexfec = true;
1544 }
1542 } 1545 }
1543 1546
1544 if (params_.video.ulpfec) { 1547 if (params_.video.ulpfec) {
1545 video_send_config_.rtp.ulpfec.red_payload_type = kRedPayloadType; 1548 video_send_config_.rtp.ulpfec.red_payload_type = kRedPayloadType;
1546 video_send_config_.rtp.ulpfec.ulpfec_payload_type = kUlpfecPayloadType; 1549 video_send_config_.rtp.ulpfec.ulpfec_payload_type = kUlpfecPayloadType;
1547 video_send_config_.rtp.ulpfec.red_rtx_payload_type = kRtxRedPayloadType; 1550 video_send_config_.rtp.ulpfec.red_rtx_payload_type = kRtxRedPayloadType;
1548 1551
1549 if (decode_all_receive_streams) { 1552 if (decode_all_receive_streams) {
1550 for (auto it = video_receive_configs_.begin(); 1553 for (auto it = video_receive_configs_.begin();
1551 it != video_receive_configs_.end(); ++it) { 1554 it != video_receive_configs_.end(); ++it) {
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
2180 if (!params_.logging.encoded_frame_base_path.empty()) { 2183 if (!params_.logging.encoded_frame_base_path.empty()) {
2181 std::ostringstream str; 2184 std::ostringstream str;
2182 str << receive_logs_++; 2185 str << receive_logs_++;
2183 std::string path = 2186 std::string path =
2184 params_.logging.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; 2187 params_.logging.encoded_frame_base_path + "." + str.str() + ".recv.ivf";
2185 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), 2188 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path),
2186 100000000); 2189 100000000);
2187 } 2190 }
2188 } 2191 }
2189 } // namespace webrtc 2192 } // namespace webrtc
OLDNEW
« no previous file with comments | « test/call_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698