| 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 |
| 11 #ifndef WEBRTC_CALL_RAMPUP_TESTS_H_ | 11 #ifndef WEBRTC_CALL_RAMPUP_TESTS_H_ |
| 12 #define WEBRTC_CALL_RAMPUP_TESTS_H_ | 12 #define WEBRTC_CALL_RAMPUP_TESTS_H_ |
| 13 | 13 |
| 14 #include <map> | 14 #include <map> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/base/event.h" | 18 #include "webrtc/base/event.h" |
| 19 #include "webrtc/call.h" | 19 #include "webrtc/call.h" |
| 20 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
| 20 #include "webrtc/test/call_test.h" | 21 #include "webrtc/test/call_test.h" |
| 21 | 22 |
| 22 namespace webrtc { | 23 namespace webrtc { |
| 23 | 24 |
| 24 static const int kTransmissionTimeOffsetExtensionId = 6; | 25 static const int kTransmissionTimeOffsetExtensionId = 6; |
| 25 static const int kAbsSendTimeExtensionId = 7; | 26 static const int kAbsSendTimeExtensionId = 7; |
| 26 static const int kTransportSequenceNumberExtensionId = 8; | 27 static const int kTransportSequenceNumberExtensionId = 8; |
| 27 static const unsigned int kSingleStreamTargetBps = 1000000; | 28 static const unsigned int kSingleStreamTargetBps = 1000000; |
| 28 | 29 |
| 29 class Clock; | 30 class Clock; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 50 size_t* total_packets_sent, | 51 size_t* total_packets_sent, |
| 51 size_t* total_sent, | 52 size_t* total_sent, |
| 52 size_t* padding_sent, | 53 size_t* padding_sent, |
| 53 size_t* media_sent) const; | 54 size_t* media_sent) const; |
| 54 | 55 |
| 55 void ReportResult(const std::string& measurement, | 56 void ReportResult(const std::string& measurement, |
| 56 size_t value, | 57 size_t value, |
| 57 const std::string& units) const; | 58 const std::string& units) const; |
| 58 void TriggerTestDone(); | 59 void TriggerTestDone(); |
| 59 | 60 |
| 61 webrtc::RtcEventLogNullImpl event_log_; |
| 60 rtc::Event event_; | 62 rtc::Event event_; |
| 61 Clock* const clock_; | 63 Clock* const clock_; |
| 62 FakeNetworkPipe::Config forward_transport_config_; | 64 FakeNetworkPipe::Config forward_transport_config_; |
| 63 const size_t num_video_streams_; | 65 const size_t num_video_streams_; |
| 64 const size_t num_audio_streams_; | 66 const size_t num_audio_streams_; |
| 65 const bool rtx_; | 67 const bool rtx_; |
| 66 const bool red_; | 68 const bool red_; |
| 67 Call* sender_call_; | 69 Call* sender_call_; |
| 68 VideoSendStream* send_stream_; | 70 VideoSendStream* send_stream_; |
| 69 test::PacketTransport* send_transport_; | 71 test::PacketTransport* send_transport_; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 std::string GetModifierString() const; | 130 std::string GetModifierString() const; |
| 129 void EvolveTestState(int bitrate_bps, bool suspended); | 131 void EvolveTestState(int bitrate_bps, bool suspended); |
| 130 | 132 |
| 131 TestStates test_state_; | 133 TestStates test_state_; |
| 132 int64_t state_start_ms_; | 134 int64_t state_start_ms_; |
| 133 int64_t interval_start_ms_; | 135 int64_t interval_start_ms_; |
| 134 int sent_bytes_; | 136 int sent_bytes_; |
| 135 }; | 137 }; |
| 136 } // namespace webrtc | 138 } // namespace webrtc |
| 137 #endif // WEBRTC_CALL_RAMPUP_TESTS_H_ | 139 #endif // WEBRTC_CALL_RAMPUP_TESTS_H_ |
| OLD | NEW |