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

Side by Side Diff: webrtc/video/video_quality_test.cc

Issue 2774463003: Don't hardcode MediaType::ANY in FakeNetworkPipe. (Closed)
Patch Set: Update FakeCall::DeliverPacket, for consistency with Call::DeliverRtp. Created 3 years, 8 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/video/replay.cc ('k') | webrtc/video/video_send_stream_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) 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 "webrtc/video/video_quality_test.h" 10 #include "webrtc/video/video_quality_test.h"
(...skipping 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 } 1583 }
1584 1584
1585 webrtc::RtcEventLogNullImpl event_log; 1585 webrtc::RtcEventLogNullImpl event_log;
1586 Call::Config call_config(&event_log_); 1586 Call::Config call_config(&event_log_);
1587 call_config.bitrate_config = params.call.call_bitrate_config; 1587 call_config.bitrate_config = params.call.call_bitrate_config;
1588 CreateCalls(call_config, call_config); 1588 CreateCalls(call_config, call_config);
1589 1589
1590 test::LayerFilteringTransport send_transport( 1590 test::LayerFilteringTransport send_transport(
1591 params_.pipe, sender_call_.get(), kPayloadTypeVP8, kPayloadTypeVP9, 1591 params_.pipe, sender_call_.get(), kPayloadTypeVP8, kPayloadTypeVP9,
1592 params_.video.selected_tl, params_.ss.selected_sl); 1592 params_.video.selected_tl, params_.ss.selected_sl);
1593 test::DirectTransport recv_transport(params_.pipe, receiver_call_.get()); 1593 test::DirectTransport recv_transport(
1594 params_.pipe, receiver_call_.get(), MediaType::VIDEO);
1594 1595
1595 std::string graph_title = params_.analyzer.graph_title; 1596 std::string graph_title = params_.analyzer.graph_title;
1596 if (graph_title.empty()) 1597 if (graph_title.empty())
1597 graph_title = VideoQualityTest::GenerateGraphTitle(); 1598 graph_title = VideoQualityTest::GenerateGraphTitle();
1598 1599
1599 bool is_quick_test_enabled = field_trial::IsEnabled("WebRTC-QuickPerfTest"); 1600 bool is_quick_test_enabled = field_trial::IsEnabled("WebRTC-QuickPerfTest");
1600 VideoAnalyzer analyzer( 1601 VideoAnalyzer analyzer(
1601 &send_transport, params_.analyzer.test_label, 1602 &send_transport, params_.analyzer.test_label,
1602 params_.analyzer.avg_psnr_threshold, params_.analyzer.avg_ssim_threshold, 1603 params_.analyzer.avg_psnr_threshold, params_.analyzer.avg_ssim_threshold,
1603 is_quick_test_enabled 1604 is_quick_test_enabled
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 if (!params_.video.encoded_frame_base_path.empty()) { 1882 if (!params_.video.encoded_frame_base_path.empty()) {
1882 std::ostringstream str; 1883 std::ostringstream str;
1883 str << receive_logs_++; 1884 str << receive_logs_++;
1884 std::string path = 1885 std::string path =
1885 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; 1886 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf";
1886 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), 1887 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path),
1887 10000000); 1888 10000000);
1888 } 1889 }
1889 } 1890 }
1890 } // namespace webrtc 1891 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/replay.cc ('k') | webrtc/video/video_send_stream_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698