OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |