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

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

Issue 1215603003: Remove VCM_*_PAYLOAD_TYPE constants. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 5 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/modules/video_coding/main/test/video_rtp_play.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) 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 <algorithm> 10 #include <algorithm>
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 void PerformTest() override { 245 void PerformTest() override {
246 EXPECT_EQ(kEventSignaled, Wait()) 246 EXPECT_EQ(kEventSignaled, Wait())
247 << "Timed out while waiting for enough frames to be decoded."; 247 << "Timed out while waiting for enough frames to be decoded.";
248 } 248 }
249 249
250 void ModifyConfigs(VideoSendStream::Config* send_config, 250 void ModifyConfigs(VideoSendStream::Config* send_config,
251 std::vector<VideoReceiveStream::Config>* receive_configs, 251 std::vector<VideoReceiveStream::Config>* receive_configs,
252 VideoEncoderConfig* encoder_config) override { 252 VideoEncoderConfig* encoder_config) override {
253 send_config->encoder_settings.encoder = encoder_.get(); 253 send_config->encoder_settings.encoder = encoder_.get();
254 send_config->encoder_settings.payload_name = "VP9"; 254 send_config->encoder_settings.payload_name = "VP9";
255 send_config->encoder_settings.payload_type = VCM_VP9_PAYLOAD_TYPE; 255 send_config->encoder_settings.payload_type = 124;
256 encoder_config->streams[0].min_bitrate_bps = 50000; 256 encoder_config->streams[0].min_bitrate_bps = 50000;
257 encoder_config->streams[0].target_bitrate_bps = 257 encoder_config->streams[0].target_bitrate_bps =
258 encoder_config->streams[0].max_bitrate_bps = 2000000; 258 encoder_config->streams[0].max_bitrate_bps = 2000000;
259 259
260 (*receive_configs)[0].renderer = this; 260 (*receive_configs)[0].renderer = this;
261 (*receive_configs)[0].decoders.resize(1); 261 (*receive_configs)[0].decoders.resize(1);
262 (*receive_configs)[0].decoders[0].payload_type = 262 (*receive_configs)[0].decoders[0].payload_type =
263 send_config->encoder_settings.payload_type; 263 send_config->encoder_settings.payload_type;
264 (*receive_configs)[0].decoders[0].payload_name = 264 (*receive_configs)[0].decoders[0].payload_name =
265 send_config->encoder_settings.payload_name; 265 send_config->encoder_settings.payload_name;
(...skipping 2565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2831 EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) 2831 EXPECT_TRUE(default_receive_config.rtp.rtx.empty())
2832 << "Enabling RTX requires rtpmap: rtx negotiation."; 2832 << "Enabling RTX requires rtpmap: rtx negotiation.";
2833 EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) 2833 EXPECT_TRUE(default_receive_config.rtp.extensions.empty())
2834 << "Enabling RTP extensions require negotiation."; 2834 << "Enabling RTP extensions require negotiation.";
2835 2835
2836 VerifyEmptyNackConfig(default_receive_config.rtp.nack); 2836 VerifyEmptyNackConfig(default_receive_config.rtp.nack);
2837 VerifyEmptyFecConfig(default_receive_config.rtp.fec); 2837 VerifyEmptyFecConfig(default_receive_config.rtp.fec);
2838 } 2838 }
2839 2839
2840 } // namespace webrtc 2840 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/main/test/video_rtp_play.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698