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

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

Issue 2834663003: Allow mocking SendSideCongestionController for Call tests. (Closed)
Patch Set: rebase 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
« no previous file with comments | « webrtc/call/call_unittest.cc ('k') | webrtc/call/rtp_transport_controller_send.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 FakeRtpTransportControllerSend
21 : public RtpTransportControllerSendInterface {
22 public:
23 explicit FakeRtpTransportControllerSend(
24 SendSideCongestionController* send_side_cc)
25 : send_side_cc_(send_side_cc) {
26 RTC_DCHECK(send_side_cc);
27 }
28
29 PacketRouter* packet_router() override { return &packet_router_; }
30
31 SendSideCongestionController* send_side_cc() override {
32 return send_side_cc_;
33 }
34
35 TransportFeedbackObserver* transport_feedback_observer() override {
36 return send_side_cc_;
37 }
38
39 RtpPacketSender* packet_sender() override { return send_side_cc_->pacer(); }
40
41 private:
42 PacketRouter packet_router_;
43 SendSideCongestionController* send_side_cc_;
44 };
45
46 } // namespace webrtc
47
48 #endif // WEBRTC_CALL_FAKE_RTP_TRANSPORT_CONTROLLER_SEND_H_
OLDNEW
« no previous file with comments | « webrtc/call/call_unittest.cc ('k') | webrtc/call/rtp_transport_controller_send.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698