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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const std::string& extension_type, | 43 const std::string& extension_type, |
44 bool rtx, | 44 bool rtx, |
45 bool red); | 45 bool red); |
46 ~RampUpTester() override; | 46 ~RampUpTester() override; |
47 | 47 |
48 void PerformTest() override; | 48 void PerformTest() override; |
49 | 49 |
50 protected: | 50 protected: |
51 virtual bool PollStats(); | 51 virtual bool PollStats(); |
52 | 52 |
53 void GetStats(const VideoSendStream::StreamStats& stream, | 53 void AccumulateStats(const VideoSendStream::StreamStats& stream, |
54 size_t* total_packets_sent, | 54 size_t* total_packets_sent, |
55 size_t* total_sent, | 55 size_t* total_sent, |
56 size_t* padding_sent, | 56 size_t* padding_sent, |
57 size_t* media_sent) const; | 57 size_t* media_sent) const; |
58 | 58 |
59 void ReportResult(const std::string& measurement, | 59 void ReportResult(const std::string& measurement, |
60 size_t value, | 60 size_t value, |
61 const std::string& units) const; | 61 const std::string& units) const; |
62 void TriggerTestDone(); | 62 void TriggerTestDone(); |
63 | 63 |
64 rtc::Event event_; | 64 rtc::Event event_; |
65 Clock* const clock_; | 65 Clock* const clock_; |
66 const size_t num_streams_; | 66 const size_t num_streams_; |
67 const bool rtx_; | 67 const bool rtx_; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 void EvolveTestState(int bitrate_bps, bool suspended); | 123 void EvolveTestState(int bitrate_bps, bool suspended); |
124 | 124 |
125 FakeNetworkPipe::Config forward_transport_config_; | 125 FakeNetworkPipe::Config forward_transport_config_; |
126 TestStates test_state_; | 126 TestStates test_state_; |
127 int64_t state_start_ms_; | 127 int64_t state_start_ms_; |
128 int64_t interval_start_ms_; | 128 int64_t interval_start_ms_; |
129 int sent_bytes_; | 129 int sent_bytes_; |
130 }; | 130 }; |
131 } // namespace webrtc | 131 } // namespace webrtc |
132 #endif // WEBRTC_VIDEO_RAMPUP_TESTS_H_ | 132 #endif // WEBRTC_VIDEO_RAMPUP_TESTS_H_ |
OLD | NEW |