Index: webrtc/call/fake_rtp_transport_controller_send.h |
diff --git a/webrtc/call/fake_rtp_transport_controller_send.h b/webrtc/call/fake_rtp_transport_controller_send.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..531f0937e7f59dfc6ab2f105074e1e0608be090e |
--- /dev/null |
+++ b/webrtc/call/fake_rtp_transport_controller_send.h |
@@ -0,0 +1,46 @@ |
+/* |
+ * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
+ * |
+ * Use of this source code is governed by a BSD-style license |
+ * that can be found in the LICENSE file in the root of the source |
+ * tree. An additional intellectual property rights grant can be found |
+ * in the file PATENTS. All contributing project authors may |
+ * be found in the AUTHORS file in the root of the source tree. |
+ */ |
+ |
+#ifndef WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_ |
+#define WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_ |
+ |
+#include "webrtc/call/rtp_transport_controller_send_interface.h" |
+#include "webrtc/modules/congestion_controller/include/send_side_congestion_controller.h" |
+#include "webrtc/modules/pacing/packet_router.h" |
+ |
+namespace webrtc { |
+ |
+class FakeRtpTransportController : public RtpTransportControllerSendInterface { |
Stefan
2017/05/01 11:17:06
FakeRtpTransportControllerSend?
Zach Stein
2017/05/04 21:30:02
Done.
|
+ public: |
+ explicit FakeRtpTransportController( |
+ SendSideCongestionController* send_side_cc) |
+ : send_side_cc_(send_side_cc) { |
+ RTC_DCHECK(send_side_cc); |
+ } |
+ |
+ PacketRouter* packet_router() override { return &packet_router_; } |
+ |
+ SendSideCongestionController* send_side_cc() override { |
+ return send_side_cc_; |
+ } |
+ TransportFeedbackObserver* transport_feedback_observer() override { |
Stefan
2017/05/01 11:17:06
Empty line above for consistency
Zach Stein
2017/05/04 21:30:02
Done.
|
+ return send_side_cc_; |
+ } |
+ |
+ RtpPacketSender* packet_sender() override { return send_side_cc_->pacer(); } |
+ |
+ private: |
+ PacketRouter packet_router_; |
+ SendSideCongestionController* send_side_cc_; |
+}; |
+ |
+} // namespace webrtc |
+ |
+#endif // WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_ |