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

Side by Side Diff: media/cast/sender/video_sender_unittest.cc

Issue 427733002: Cast: Remove unused RTCP messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « media/cast/sender/video_sender.cc ('k') | media/cast/test/sender.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h> 5 #include <stdint.h>
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 152 }
153 153
154 static void UpdateCastTransportStatus(CastTransportStatus status) { 154 static void UpdateCastTransportStatus(CastTransportStatus status) {
155 EXPECT_EQ(TRANSPORT_VIDEO_INITIALIZED, status); 155 EXPECT_EQ(TRANSPORT_VIDEO_INITIALIZED, status);
156 } 156 }
157 157
158 void InitEncoder(bool external) { 158 void InitEncoder(bool external) {
159 VideoSenderConfig video_config; 159 VideoSenderConfig video_config;
160 video_config.ssrc = 1; 160 video_config.ssrc = 1;
161 video_config.incoming_feedback_ssrc = 2; 161 video_config.incoming_feedback_ssrc = 2;
162 video_config.rtcp_c_name = "video_test@10.1.1.1";
163 video_config.rtp_payload_type = 127; 162 video_config.rtp_payload_type = 127;
164 video_config.use_external_encoder = external; 163 video_config.use_external_encoder = external;
165 video_config.width = kWidth; 164 video_config.width = kWidth;
166 video_config.height = kHeight; 165 video_config.height = kHeight;
167 video_config.max_bitrate = 5000000; 166 video_config.max_bitrate = 5000000;
168 video_config.min_bitrate = 1000000; 167 video_config.min_bitrate = 1000000;
169 video_config.start_bitrate = 1000000; 168 video_config.start_bitrate = 1000000;
170 video_config.max_qp = 56; 169 video_config.max_qp = 56;
171 video_config.min_qp = 0; 170 video_config.min_qp = 0;
172 video_config.max_frame_rate = 30; 171 video_config.max_frame_rate = 30;
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 video_sender_->OnReceivedCastFeedback(cast_feedback); 516 video_sender_->OnReceivedCastFeedback(cast_feedback);
518 517
519 transport_.SetPause(false); 518 transport_.SetPause(false);
520 RunTasks(33); 519 RunTasks(33);
521 // Only one packet should be retransmitted. 520 // Only one packet should be retransmitted.
522 EXPECT_EQ(1, transport_.number_of_rtp_packets()); 521 EXPECT_EQ(1, transport_.number_of_rtp_packets());
523 } 522 }
524 523
525 } // namespace cast 524 } // namespace cast
526 } // namespace media 525 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/sender/video_sender.cc ('k') | media/cast/test/sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698