Index: webrtc/media/engine/fakewebrtccall.h |
diff --git a/webrtc/media/engine/fakewebrtccall.h b/webrtc/media/engine/fakewebrtccall.h |
index 7ff80ce0cc194fa268b95bb541564d35d2e6f268..7f25672b3413bf56edfa18085760fad70c58d08d 100644 |
--- a/webrtc/media/engine/fakewebrtccall.h |
+++ b/webrtc/media/engine/fakewebrtccall.h |
@@ -195,6 +195,24 @@ class FakeVideoReceiveStream final : public webrtc::VideoReceiveStream { |
webrtc::VideoReceiveStream::Stats stats_; |
}; |
+class FakeFlexfecReceiveStream final : public webrtc::FlexfecReceiveStream { |
+ public: |
+ explicit FakeFlexfecReceiveStream( |
+ webrtc::FlexfecReceiveStream::Config config); |
+ |
+ const webrtc::FlexfecReceiveStream::Config& GetConfig(); |
+ |
+ private: |
+ // webrtc::FlexfecReceiveStream implementation. |
+ void Start() override; |
+ void Stop() override; |
+ |
+ webrtc::FlexfecReceiveStream::Stats GetStats() const override; |
+ |
+ webrtc::FlexfecReceiveStream::Config config_; |
+ bool receiving_; |
+}; |
+ |
class FakeCall final : public webrtc::Call, public webrtc::PacketReceiver { |
public: |
explicit FakeCall(const webrtc::Call::Config& config); |
@@ -209,6 +227,8 @@ class FakeCall final : public webrtc::Call, public webrtc::PacketReceiver { |
const std::vector<FakeAudioReceiveStream*>& GetAudioReceiveStreams(); |
const FakeAudioReceiveStream* GetAudioReceiveStream(uint32_t ssrc); |
+ const std::vector<FakeFlexfecReceiveStream*>& GetFlexfecReceiveStreams(); |
+ |
rtc::SentPacket last_sent_packet() const { return last_sent_packet_; } |
// This is useful if we care about the last media packet (with id populated) |
@@ -276,6 +296,7 @@ class FakeCall final : public webrtc::Call, public webrtc::PacketReceiver { |
std::vector<FakeAudioSendStream*> audio_send_streams_; |
std::vector<FakeVideoReceiveStream*> video_receive_streams_; |
std::vector<FakeAudioReceiveStream*> audio_receive_streams_; |
+ std::vector<FakeFlexfecReceiveStream*> flexfec_receive_streams_; |
stefan-webrtc
2016/11/17 12:48:59
std::vector<unique_ptr<...>>?
brandtr
2016/11/17 13:23:36
That would be nice. I'll do that in another CL tho
brandtr
2016/11/21 11:41:13
See discussion here: https://codereview.webrtc.org
|
int num_created_send_streams_; |
int num_created_receive_streams_; |