OLD | NEW |
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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 VideoSendStream* send_stream, | 731 VideoSendStream* send_stream, |
732 const std::vector<VideoReceiveStream*>& receive_streams) override { | 732 const std::vector<VideoReceiveStream*>& receive_streams) override { |
733 send_stream_ = send_stream; | 733 send_stream_ = send_stream; |
734 } | 734 } |
735 | 735 |
736 void PerformTest() override { | 736 void PerformTest() override { |
737 ASSERT_TRUE(time_to_reconfigure_.Wait(kDefaultTimeoutMs)) | 737 ASSERT_TRUE(time_to_reconfigure_.Wait(kDefaultTimeoutMs)) |
738 << "Timed out before receiving an initial high bitrate."; | 738 << "Timed out before receiving an initial high bitrate."; |
739 encoder_config_.streams[0].width *= 2; | 739 encoder_config_.streams[0].width *= 2; |
740 encoder_config_.streams[0].height *= 2; | 740 encoder_config_.streams[0].height *= 2; |
741 EXPECT_TRUE(send_stream_->ReconfigureVideoEncoder(encoder_config_)); | 741 send_stream_->ReconfigureVideoEncoder(encoder_config_); |
742 EXPECT_TRUE(Wait()) | 742 EXPECT_TRUE(Wait()) |
743 << "Timed out while waiting for a couple of high bitrate estimates " | 743 << "Timed out while waiting for a couple of high bitrate estimates " |
744 "after reconfiguring the send stream."; | 744 "after reconfiguring the send stream."; |
745 } | 745 } |
746 | 746 |
747 private: | 747 private: |
748 rtc::Event time_to_reconfigure_; | 748 rtc::Event time_to_reconfigure_; |
749 int encoder_inits_; | 749 int encoder_inits_; |
750 uint32_t last_set_bitrate_; | 750 uint32_t last_set_bitrate_; |
751 VideoSendStream* send_stream_; | 751 VideoSendStream* send_stream_; |
752 VideoEncoderConfig encoder_config_; | 752 VideoEncoderConfig encoder_config_; |
753 } test; | 753 } test; |
754 | 754 |
755 RunBaseTest(&test); | 755 RunBaseTest(&test); |
756 } | 756 } |
757 | 757 |
758 } // namespace webrtc | 758 } // namespace webrtc |
OLD | NEW |