| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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_MODULES_RTP_RTCP_TEST_BWESTANDALONE_TESTSENDERRECEIVER_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_TEST_BWESTANDALONE_TESTSENDERRECEIVER_H_ |
| 12 #define WEBRTC_MODULES_RTP_RTCP_TEST_BWESTANDALONE_TESTSENDERRECEIVER_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_TEST_BWESTANDALONE_TESTSENDERRECEIVER_H_ |
| 13 | 13 |
| 14 #include "webrtc/base/platform_thread.h" | 14 #include "webrtc/base/platform_thread.h" |
| 15 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 15 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
| 16 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 16 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 17 #include "webrtc/test/channel_transport/udp_transport.h" | 17 #include "webrtc/test/channel_transport/udp_transport.h" |
| 18 #include "webrtc/typedefs.h" | 18 #include "webrtc/typedefs.h" |
| 19 | 19 |
| 20 class TestLoadGenerator; | 20 class TestLoadGenerator; |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 class CriticalSectionWrapper; | 22 class CriticalSectionWrapper; |
| 23 class EventWrapper; | 23 class EventWrapper; |
| 24 } | |
| 25 | |
| 26 using namespace webrtc; | |
| 27 | 24 |
| 28 #define MAX_BITRATE_KBPS 50000 | 25 #define MAX_BITRATE_KBPS 50000 |
| 29 | 26 |
| 30 | 27 |
| 31 class SendRecCB | 28 class SendRecCB |
| 32 { | 29 { |
| 33 public: | 30 public: |
| 34 virtual void OnOnNetworkChanged(const uint32_t bitrateTarget, | 31 virtual void OnOnNetworkChanged(const uint32_t bitrateTarget, |
| 35 const uint8_t fractionLost, | 32 const uint8_t fractionLost, |
| 36 const uint16_t roundTripTimeMs, | 33 const uint16_t roundTripTimeMs, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 bool _running; | 139 bool _running; |
| 143 int8_t _payloadType; | 140 int8_t _payloadType; |
| 144 TestLoadGenerator* _loadGenerator; | 141 TestLoadGenerator* _loadGenerator; |
| 145 bool _isSender; | 142 bool _isSender; |
| 146 bool _isReceiver; | 143 bool _isReceiver; |
| 147 SendRecCB * _sendRecCB; | 144 SendRecCB * _sendRecCB; |
| 148 size_t _lastBytesReceived; | 145 size_t _lastBytesReceived; |
| 149 int64_t _lastTime; | 146 int64_t _lastTime; |
| 150 | 147 |
| 151 }; | 148 }; |
| 152 | 149 } // namespace webrtc |
| 153 #endif // WEBRTC_MODULES_RTP_RTCP_TEST_BWESTANDALONE_TESTSENDERRECEIVER_H_ | 150 #endif // WEBRTC_MODULES_RTP_RTCP_TEST_BWESTANDALONE_TESTSENDERRECEIVER_H_ |
| OLD | NEW |