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

Unified Diff: webrtc/media/engine/fakewebrtccall.h

Issue 2511703002: Wire up FlexFEC in VideoEngine2. (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698