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 21 matching lines...) Expand all Loading... |
32 class RampUpTester : public test::EndToEndTest { | 32 class RampUpTester : public test::EndToEndTest { |
33 public: | 33 public: |
34 RampUpTester(size_t num_video_streams, | 34 RampUpTester(size_t num_video_streams, |
35 size_t num_audio_streams, | 35 size_t num_audio_streams, |
36 unsigned int start_bitrate_bps, | 36 unsigned int start_bitrate_bps, |
37 const std::string& extension_type, | 37 const std::string& extension_type, |
38 bool rtx, | 38 bool rtx, |
39 bool red); | 39 bool red); |
40 ~RampUpTester() override; | 40 ~RampUpTester() override; |
41 | 41 |
| 42 size_t GetNumVideoStreams() const override; |
| 43 |
42 void PerformTest() override; | 44 void PerformTest() override; |
43 | 45 |
44 protected: | 46 protected: |
45 virtual bool PollStats(); | 47 virtual bool PollStats(); |
46 | 48 |
47 void AccumulateStats(const VideoSendStream::StreamStats& stream, | 49 void AccumulateStats(const VideoSendStream::StreamStats& stream, |
48 size_t* total_packets_sent, | 50 size_t* total_packets_sent, |
49 size_t* total_sent, | 51 size_t* total_sent, |
50 size_t* padding_sent, | 52 size_t* padding_sent, |
51 size_t* media_sent) const; | 53 size_t* media_sent) const; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 std::string GetModifierString() const; | 123 std::string GetModifierString() const; |
122 void EvolveTestState(int bitrate_bps, bool suspended); | 124 void EvolveTestState(int bitrate_bps, bool suspended); |
123 | 125 |
124 TestStates test_state_; | 126 TestStates test_state_; |
125 int64_t state_start_ms_; | 127 int64_t state_start_ms_; |
126 int64_t interval_start_ms_; | 128 int64_t interval_start_ms_; |
127 int sent_bytes_; | 129 int sent_bytes_; |
128 }; | 130 }; |
129 } // namespace webrtc | 131 } // namespace webrtc |
130 #endif // WEBRTC_CALL_RAMPUP_TESTS_H_ | 132 #endif // WEBRTC_CALL_RAMPUP_TESTS_H_ |
OLD | NEW |