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

Side by Side Diff: webrtc/call/call.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/BUILD.gn ('k') | webrtc/call/call.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 #ifndef WEBRTC_CALL_CALL_H_ 10 #ifndef WEBRTC_CALL_CALL_H_
11 #define WEBRTC_CALL_CALL_H_ 11 #define WEBRTC_CALL_CALL_H_
12 12
13 #include <memory>
13 #include <string> 14 #include <string>
14 #include <vector> 15 #include <vector>
15 16
16 #include "webrtc/base/networkroute.h" 17 #include "webrtc/base/networkroute.h"
17 #include "webrtc/base/platform_file.h" 18 #include "webrtc/base/platform_file.h"
18 #include "webrtc/base/socket.h" 19 #include "webrtc/base/socket.h"
19 #include "webrtc/call/audio_receive_stream.h" 20 #include "webrtc/call/audio_receive_stream.h"
20 #include "webrtc/call/audio_send_stream.h" 21 #include "webrtc/call/audio_send_stream.h"
21 #include "webrtc/call/audio_state.h" 22 #include "webrtc/call/audio_state.h"
22 #include "webrtc/call/flexfec_receive_stream.h" 23 #include "webrtc/call/flexfec_receive_stream.h"
24 #include "webrtc/call/rtp_transport_controller_send_interface.h"
23 #include "webrtc/common_types.h" 25 #include "webrtc/common_types.h"
24 #include "webrtc/video_receive_stream.h" 26 #include "webrtc/video_receive_stream.h"
25 #include "webrtc/video_send_stream.h" 27 #include "webrtc/video_send_stream.h"
26 28
27 namespace webrtc { 29 namespace webrtc {
28 30
29 class AudioProcessing; 31 class AudioProcessing;
30 class RtcEventLog; 32 class RtcEventLog;
31 33
32 enum class MediaType { 34 enum class MediaType {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 93
92 int send_bandwidth_bps = 0; // Estimated available send bandwidth. 94 int send_bandwidth_bps = 0; // Estimated available send bandwidth.
93 int max_padding_bitrate_bps = 0; // Cumulative configured max padding. 95 int max_padding_bitrate_bps = 0; // Cumulative configured max padding.
94 int recv_bandwidth_bps = 0; // Estimated available receive bandwidth. 96 int recv_bandwidth_bps = 0; // Estimated available receive bandwidth.
95 int64_t pacer_delay_ms = 0; 97 int64_t pacer_delay_ms = 0;
96 int64_t rtt_ms = -1; 98 int64_t rtt_ms = -1;
97 }; 99 };
98 100
99 static Call* Create(const Call::Config& config); 101 static Call* Create(const Call::Config& config);
100 102
103 // Allows mocking |transport_send| for testing.
104 static Call* Create(
105 const Call::Config& config,
106 std::unique_ptr<RtpTransportControllerSendInterface> transport_send);
107
101 virtual AudioSendStream* CreateAudioSendStream( 108 virtual AudioSendStream* CreateAudioSendStream(
102 const AudioSendStream::Config& config) = 0; 109 const AudioSendStream::Config& config) = 0;
103 virtual void DestroyAudioSendStream(AudioSendStream* send_stream) = 0; 110 virtual void DestroyAudioSendStream(AudioSendStream* send_stream) = 0;
104 111
105 virtual AudioReceiveStream* CreateAudioReceiveStream( 112 virtual AudioReceiveStream* CreateAudioReceiveStream(
106 const AudioReceiveStream::Config& config) = 0; 113 const AudioReceiveStream::Config& config) = 0;
107 virtual void DestroyAudioReceiveStream( 114 virtual void DestroyAudioReceiveStream(
108 AudioReceiveStream* receive_stream) = 0; 115 AudioReceiveStream* receive_stream) = 0;
109 116
110 virtual VideoSendStream* CreateVideoSendStream( 117 virtual VideoSendStream* CreateVideoSendStream(
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 const rtc::NetworkRoute& network_route) = 0; 164 const rtc::NetworkRoute& network_route) = 0;
158 165
159 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; 166 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0;
160 167
161 virtual ~Call() {} 168 virtual ~Call() {}
162 }; 169 };
163 170
164 } // namespace webrtc 171 } // namespace webrtc
165 172
166 #endif // WEBRTC_CALL_CALL_H_ 173 #endif // WEBRTC_CALL_CALL_H_
OLDNEW
« no previous file with comments | « webrtc/call/BUILD.gn ('k') | webrtc/call/call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698