OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #ifndef WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_ | |
12 #define WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_ | |
13 | |
14 #include "webrtc/call/rtp_transport_controller_send_interface.h" | |
15 #include "webrtc/modules/congestion_controller/include/send_side_congestion_cont roller.h" | |
16 #include "webrtc/modules/pacing/packet_router.h" | |
17 | |
18 namespace webrtc { | |
19 | |
20 class FakeRtpTransportController : public RtpTransportControllerSendInterface { | |
Stefan
2017/05/01 11:17:06
FakeRtpTransportControllerSend?
Zach Stein
2017/05/04 21:30:02
Done.
| |
21 public: | |
22 explicit FakeRtpTransportController( | |
23 SendSideCongestionController* send_side_cc) | |
24 : send_side_cc_(send_side_cc) { | |
25 RTC_DCHECK(send_side_cc); | |
26 } | |
27 | |
28 PacketRouter* packet_router() override { return &packet_router_; } | |
29 | |
30 SendSideCongestionController* send_side_cc() override { | |
31 return send_side_cc_; | |
32 } | |
33 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.
| |
34 return send_side_cc_; | |
35 } | |
36 | |
37 RtpPacketSender* packet_sender() override { return send_side_cc_->pacer(); } | |
38 | |
39 private: | |
40 PacketRouter packet_router_; | |
41 SendSideCongestionController* send_side_cc_; | |
42 }; | |
43 | |
44 } // namespace webrtc | |
45 | |
46 #endif // WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_ | |
OLD | NEW |