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 16 matching lines...) Expand all Loading... |
27 static const int kTransportSequenceNumberExtensionId = 8; | 27 static const int kTransportSequenceNumberExtensionId = 8; |
28 static const unsigned int kSingleStreamTargetBps = 1000000; | 28 static const unsigned int kSingleStreamTargetBps = 1000000; |
29 | 29 |
30 class Clock; | 30 class Clock; |
31 | 31 |
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 int64_t min_run_time_ms, |
37 const std::string& extension_type, | 38 const std::string& extension_type, |
38 bool rtx, | 39 bool rtx, |
39 bool red); | 40 bool red, |
| 41 bool report_perf_stats); |
40 ~RampUpTester() override; | 42 ~RampUpTester() override; |
41 | 43 |
42 size_t GetNumVideoStreams() const override; | 44 size_t GetNumVideoStreams() const override; |
43 size_t GetNumAudioStreams() const override; | 45 size_t GetNumAudioStreams() const override; |
44 | 46 |
45 void PerformTest() override; | 47 void PerformTest() override; |
46 | 48 |
47 protected: | 49 protected: |
48 virtual bool PollStats(); | 50 virtual bool PollStats(); |
49 | 51 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 std::vector<VideoReceiveStream::Config>* receive_configs, | 86 std::vector<VideoReceiveStream::Config>* receive_configs, |
85 VideoEncoderConfig* encoder_config) override; | 87 VideoEncoderConfig* encoder_config) override; |
86 void ModifyAudioConfigs( | 88 void ModifyAudioConfigs( |
87 AudioSendStream::Config* send_config, | 89 AudioSendStream::Config* send_config, |
88 std::vector<AudioReceiveStream::Config>* receive_configs) override; | 90 std::vector<AudioReceiveStream::Config>* receive_configs) override; |
89 void OnCallsCreated(Call* sender_call, Call* receiver_call) override; | 91 void OnCallsCreated(Call* sender_call, Call* receiver_call) override; |
90 | 92 |
91 static bool BitrateStatsPollingThread(void* obj); | 93 static bool BitrateStatsPollingThread(void* obj); |
92 | 94 |
93 const int start_bitrate_bps_; | 95 const int start_bitrate_bps_; |
94 bool start_bitrate_verified_; | 96 const int64_t min_run_time_ms_; |
| 97 const bool report_perf_stats_; |
95 int expected_bitrate_bps_; | 98 int expected_bitrate_bps_; |
96 int64_t test_start_ms_; | 99 int64_t test_start_ms_; |
97 int64_t ramp_up_finished_ms_; | 100 int64_t ramp_up_finished_ms_; |
98 | 101 |
99 const std::string extension_type_; | 102 const std::string extension_type_; |
100 std::vector<uint32_t> video_ssrcs_; | 103 std::vector<uint32_t> video_ssrcs_; |
101 std::vector<uint32_t> video_rtx_ssrcs_; | 104 std::vector<uint32_t> video_rtx_ssrcs_; |
102 std::vector<uint32_t> audio_ssrcs_; | 105 std::vector<uint32_t> audio_ssrcs_; |
103 | 106 |
104 rtc::PlatformThread poller_thread_; | 107 rtc::PlatformThread poller_thread_; |
(...skipping 22 matching lines...) Expand all Loading... |
127 int GetHighLinkCapacity() const; | 130 int GetHighLinkCapacity() const; |
128 void EvolveTestState(int bitrate_bps, bool suspended); | 131 void EvolveTestState(int bitrate_bps, bool suspended); |
129 | 132 |
130 TestStates test_state_; | 133 TestStates test_state_; |
131 int64_t state_start_ms_; | 134 int64_t state_start_ms_; |
132 int64_t interval_start_ms_; | 135 int64_t interval_start_ms_; |
133 int sent_bytes_; | 136 int sent_bytes_; |
134 }; | 137 }; |
135 } // namespace webrtc | 138 } // namespace webrtc |
136 #endif // WEBRTC_CALL_RAMPUP_TESTS_H_ | 139 #endif // WEBRTC_CALL_RAMPUP_TESTS_H_ |
OLD | NEW |