| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_ | 11 #ifndef WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_ |
| 12 #define WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_ | 12 #define WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_ |
| 13 | 13 |
| 14 #include "webrtc/call/rtp_transport_controller_send_interface.h" | 14 #include "webrtc/call/rtp_transport_controller_send_interface.h" |
| 15 #include "webrtc/modules/congestion_controller/include/send_side_congestion_cont
roller.h" | 15 #include "webrtc/modules/congestion_controller/include/send_side_congestion_cont
roller.h" |
| 16 #include "webrtc/modules/pacing/packet_router.h" | 16 #include "webrtc/modules/pacing/packet_router.h" |
| 17 | 17 |
| 18 namespace webrtc { | 18 namespace webrtc { |
| 19 | 19 |
| 20 // TODO(nisse): This is almost the same as RtpTransportControllerSend, |
| 21 // only difference is that it doesn't own the PacketRouter and |
| 22 // SendSideCongestionController. However, RtpTransportControllerSend |
| 23 // should likely move in that direction too, and then this class |
| 24 // becomes redundant. |
| 20 class FakeRtpTransportControllerSend | 25 class FakeRtpTransportControllerSend |
| 21 : public RtpTransportControllerSendInterface { | 26 : public RtpTransportControllerSendInterface { |
| 22 public: | 27 public: |
| 23 explicit FakeRtpTransportControllerSend( | 28 explicit FakeRtpTransportControllerSend( |
| 24 PacketRouter* packet_router, | 29 PacketRouter* packet_router, |
| 25 SendSideCongestionController* send_side_cc) | 30 SendSideCongestionController* send_side_cc) |
| 26 : packet_router_(packet_router), send_side_cc_(send_side_cc) { | 31 : packet_router_(packet_router), send_side_cc_(send_side_cc) { |
| 27 RTC_DCHECK(send_side_cc); | 32 RTC_DCHECK(send_side_cc); |
| 28 } | 33 } |
| 29 | 34 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 40 RtpPacketSender* packet_sender() override { return send_side_cc_->pacer(); } | 45 RtpPacketSender* packet_sender() override { return send_side_cc_->pacer(); } |
| 41 | 46 |
| 42 private: | 47 private: |
| 43 PacketRouter* packet_router_; | 48 PacketRouter* packet_router_; |
| 44 SendSideCongestionController* send_side_cc_; | 49 SendSideCongestionController* send_side_cc_; |
| 45 }; | 50 }; |
| 46 | 51 |
| 47 } // namespace webrtc | 52 } // namespace webrtc |
| 48 | 53 |
| 49 #endif // WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_ | 54 #endif // WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_ |
| OLD | NEW |