| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 size_t number_of_streams, | 95 size_t number_of_streams, |
| 96 bool rtx_used); | 96 bool rtx_used); |
| 97 | 97 |
| 98 virtual void SetSendStream(VideoSendStream* send_stream); | 98 virtual void SetSendStream(VideoSendStream* send_stream); |
| 99 | 99 |
| 100 virtual void OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs, | 100 virtual void OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs, |
| 101 unsigned int bitrate); | 101 unsigned int bitrate); |
| 102 | 102 |
| 103 bool SendRtp(const uint8_t* data, size_t length) override; | 103 bool SendRtp(const uint8_t* data, size_t length) override; |
| 104 | 104 |
| 105 DeliveryStatus DeliverPacket(MediaType media_type, const uint8_t* packet, | 105 DeliveryStatus DeliverPacket(MediaType media_type, |
| 106 size_t length) override; | 106 const uint8_t* packet, |
| 107 size_t length, |
| 108 const PacketTime& packet_time) override; |
| 107 | 109 |
| 108 bool SendRtcp(const uint8_t* packet, size_t length) override; | 110 bool SendRtcp(const uint8_t* packet, size_t length) override; |
| 109 | 111 |
| 110 // Produces a string similar to "1stream_nortx", depending on the values of | 112 // Produces a string similar to "1stream_nortx", depending on the values of |
| 111 // number_of_streams_ and rtx_used_; | 113 // number_of_streams_ and rtx_used_; |
| 112 std::string GetModifierString(); | 114 std::string GetModifierString(); |
| 113 | 115 |
| 114 // This method defines the state machine for the ramp up-down-up test. | 116 // This method defines the state machine for the ramp up-down-up test. |
| 115 void EvolveTestState(unsigned int bitrate_bps); | 117 void EvolveTestState(unsigned int bitrate_bps); |
| 116 | 118 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 void RunRampUpTest(size_t num_streams, | 153 void RunRampUpTest(size_t num_streams, |
| 152 unsigned int start_bitrate_bps, | 154 unsigned int start_bitrate_bps, |
| 153 const std::string& extension_type, | 155 const std::string& extension_type, |
| 154 bool rtx, | 156 bool rtx, |
| 155 bool red); | 157 bool red); |
| 156 | 158 |
| 157 void RunRampUpDownUpTest(size_t number_of_streams, bool rtx, bool red); | 159 void RunRampUpDownUpTest(size_t number_of_streams, bool rtx, bool red); |
| 158 }; | 160 }; |
| 159 } // namespace webrtc | 161 } // namespace webrtc |
| 160 #endif // WEBRTC_VIDEO_RAMPUP_TESTS_H_ | 162 #endif // WEBRTC_VIDEO_RAMPUP_TESTS_H_ |
| OLD | NEW |