Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: webrtc/call/fake_rtp_transport_controller_send.h

Issue 2838233002: Add PeerConnectionInterface::UpdateCallBitrate with call tests. (Closed)
Patch Set: Only update start from SetBitrateConfig when it changes; some comments and logging. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 class FakeRtpTransportControllerSend 20 class FakeRtpTransportControllerSend
21 : public RtpTransportControllerSendInterface { 21 : public RtpTransportControllerSendInterface {
22 public: 22 public:
23 explicit FakeRtpTransportControllerSend( 23 explicit FakeRtpTransportControllerSend(
24 PacketRouter* packet_router,
24 SendSideCongestionController* send_side_cc) 25 SendSideCongestionController* send_side_cc)
25 : send_side_cc_(send_side_cc) { 26 : packet_router_(packet_router), send_side_cc_(send_side_cc) {
26 RTC_DCHECK(send_side_cc); 27 RTC_DCHECK(send_side_cc);
27 } 28 }
28 29
29 PacketRouter* packet_router() override { return &packet_router_; } 30 PacketRouter* packet_router() override { return packet_router_; }
30 31
31 SendSideCongestionController* send_side_cc() override { 32 SendSideCongestionController* send_side_cc() override {
32 return send_side_cc_; 33 return send_side_cc_;
33 } 34 }
34 35
35 TransportFeedbackObserver* transport_feedback_observer() override { 36 TransportFeedbackObserver* transport_feedback_observer() override {
36 return send_side_cc_; 37 return send_side_cc_;
37 } 38 }
38 39
39 RtpPacketSender* packet_sender() override { return send_side_cc_->pacer(); } 40 RtpPacketSender* packet_sender() override { return send_side_cc_->pacer(); }
40 41
41 private: 42 private:
42 PacketRouter packet_router_; 43 PacketRouter* packet_router_;
43 SendSideCongestionController* send_side_cc_; 44 SendSideCongestionController* send_side_cc_;
44 }; 45 };
45 46
46 } // namespace webrtc 47 } // namespace webrtc
47 48
48 #endif // WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_ 49 #endif // WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698