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

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

Issue 2535593002: RTC_[D]CHECK_op: Remove "u" suffix on integer constants (Closed)
Patch Set: Created 4 years 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
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> // max 10 #include <algorithm> // max
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 void OnVideoStreamsCreated( 1103 void OnVideoStreamsCreated(
1104 VideoSendStream* send_stream, 1104 VideoSendStream* send_stream,
1105 const std::vector<VideoReceiveStream*>& receive_streams) override { 1105 const std::vector<VideoReceiveStream*>& receive_streams) override {
1106 stream_ = send_stream; 1106 stream_ = send_stream;
1107 } 1107 }
1108 1108
1109 void ModifyVideoConfigs( 1109 void ModifyVideoConfigs(
1110 VideoSendStream::Config* send_config, 1110 VideoSendStream::Config* send_config,
1111 std::vector<VideoReceiveStream::Config>* receive_configs, 1111 std::vector<VideoReceiveStream::Config>* receive_configs,
1112 VideoEncoderConfig* encoder_config) override { 1112 VideoEncoderConfig* encoder_config) override {
1113 RTC_DCHECK_EQ(1u, encoder_config->number_of_streams); 1113 RTC_DCHECK_EQ(1, encoder_config->number_of_streams);
1114 transport_adapter_.reset( 1114 transport_adapter_.reset(
1115 new internal::TransportAdapter(send_config->send_transport)); 1115 new internal::TransportAdapter(send_config->send_transport));
1116 transport_adapter_->Enable(); 1116 transport_adapter_->Enable();
1117 send_config->rtp.nack.rtp_history_ms = kNackRtpHistoryMs; 1117 send_config->rtp.nack.rtp_history_ms = kNackRtpHistoryMs;
1118 send_config->pre_encode_callback = this; 1118 send_config->pre_encode_callback = this;
1119 send_config->suspend_below_min_bitrate = true; 1119 send_config->suspend_below_min_bitrate = true;
1120 int min_bitrate_bps = 1120 int min_bitrate_bps =
1121 test::DefaultVideoStreamFactory::kDefaultMinBitratePerStream[0]; 1121 test::DefaultVideoStreamFactory::kDefaultMinBitratePerStream[0];
1122 set_low_remb_bps(min_bitrate_bps - 10000); 1122 set_low_remb_bps(min_bitrate_bps - 10000);
1123 int threshold_window = std::max(min_bitrate_bps / 10, 20000); 1123 int threshold_window = std::max(min_bitrate_bps / 10, 20000);
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 void OnVideoStreamsCreated( 1547 void OnVideoStreamsCreated(
1548 VideoSendStream* send_stream, 1548 VideoSendStream* send_stream,
1549 const std::vector<VideoReceiveStream*>& receive_streams) override { 1549 const std::vector<VideoReceiveStream*>& receive_streams) override {
1550 send_stream_ = send_stream; 1550 send_stream_ = send_stream;
1551 } 1551 }
1552 1552
1553 void ModifyVideoConfigs( 1553 void ModifyVideoConfigs(
1554 VideoSendStream::Config* send_config, 1554 VideoSendStream::Config* send_config,
1555 std::vector<VideoReceiveStream::Config>* receive_configs, 1555 std::vector<VideoReceiveStream::Config>* receive_configs,
1556 VideoEncoderConfig* encoder_config) override { 1556 VideoEncoderConfig* encoder_config) override {
1557 RTC_DCHECK_EQ(1u, encoder_config->number_of_streams); 1557 RTC_DCHECK_EQ(1, encoder_config->number_of_streams);
1558 if (running_without_padding_) { 1558 if (running_without_padding_) {
1559 encoder_config->min_transmit_bitrate_bps = 0; 1559 encoder_config->min_transmit_bitrate_bps = 0;
1560 encoder_config->content_type = 1560 encoder_config->content_type =
1561 VideoEncoderConfig::ContentType::kRealtimeVideo; 1561 VideoEncoderConfig::ContentType::kRealtimeVideo;
1562 } else { 1562 } else {
1563 encoder_config->min_transmit_bitrate_bps = kMinTransmitBitrateBps; 1563 encoder_config->min_transmit_bitrate_bps = kMinTransmitBitrateBps;
1564 encoder_config->content_type = VideoEncoderConfig::ContentType::kScreen; 1564 encoder_config->content_type = VideoEncoderConfig::ContentType::kScreen;
1565 } 1565 }
1566 encoder_config_ = encoder_config->Copy(); 1566 encoder_config_ = encoder_config->Copy();
1567 } 1567 }
(...skipping 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after
3167 RequestSourceRotateIfVideoOrientationExtensionNotSupported) { 3167 RequestSourceRotateIfVideoOrientationExtensionNotSupported) {
3168 TestRequestSourceRotateVideo(false); 3168 TestRequestSourceRotateVideo(false);
3169 } 3169 }
3170 3170
3171 TEST_F(VideoSendStreamTest, 3171 TEST_F(VideoSendStreamTest,
3172 DoNotRequestsRotationIfVideoOrientationExtensionSupported) { 3172 DoNotRequestsRotationIfVideoOrientationExtensionSupported) {
3173 TestRequestSourceRotateVideo(true); 3173 TestRequestSourceRotateVideo(true);
3174 } 3174 }
3175 3175
3176 } // namespace webrtc 3176 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | webrtc/voice_engine/test/auto_test/fakes/loudest_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698