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 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 VideoSendStream* send_stream, | 758 VideoSendStream* send_stream, |
759 const std::vector<VideoReceiveStream*>& receive_streams) override { | 759 const std::vector<VideoReceiveStream*>& receive_streams) override { |
760 send_stream_ = send_stream; | 760 send_stream_ = send_stream; |
761 } | 761 } |
762 | 762 |
763 void PerformTest() override { | 763 void PerformTest() override { |
764 ASSERT_TRUE(time_to_reconfigure_.Wait(kDefaultTimeoutMs)) | 764 ASSERT_TRUE(time_to_reconfigure_.Wait(kDefaultTimeoutMs)) |
765 << "Timed out before receiving an initial high bitrate."; | 765 << "Timed out before receiving an initial high bitrate."; |
766 encoder_config_.streams[0].width *= 2; | 766 encoder_config_.streams[0].width *= 2; |
767 encoder_config_.streams[0].height *= 2; | 767 encoder_config_.streams[0].height *= 2; |
768 EXPECT_TRUE(send_stream_->ReconfigureVideoEncoder(encoder_config_)); | 768 send_stream_->ReconfigureVideoEncoder(encoder_config_); |
769 EXPECT_TRUE(Wait()) | 769 EXPECT_TRUE(Wait()) |
770 << "Timed out while waiting for a couple of high bitrate estimates " | 770 << "Timed out while waiting for a couple of high bitrate estimates " |
771 "after reconfiguring the send stream."; | 771 "after reconfiguring the send stream."; |
772 } | 772 } |
773 | 773 |
774 private: | 774 private: |
775 rtc::Event time_to_reconfigure_; | 775 rtc::Event time_to_reconfigure_; |
776 int encoder_inits_; | 776 int encoder_inits_; |
777 uint32_t last_set_bitrate_; | 777 uint32_t last_set_bitrate_; |
778 VideoSendStream* send_stream_; | 778 VideoSendStream* send_stream_; |
779 VideoEncoderConfig encoder_config_; | 779 VideoEncoderConfig encoder_config_; |
780 } test; | 780 } test; |
781 | 781 |
782 RunBaseTest(&test); | 782 RunBaseTest(&test); |
783 } | 783 } |
784 | 784 |
785 } // namespace webrtc | 785 } // namespace webrtc |
OLD | NEW |