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