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

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

Issue 2770233003: Implemented the GetSources() in native code. (Closed)
Patch Set: Address the comments related to threading and the special ContributingSource that uses the SSRC. Created 3 years, 9 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 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 1c9212d02a2a29ccad7ca2b344b57122508aecfd..08fcd26a3759f16577012f5f1f5c68a980f09261 100644
--- a/webrtc/media/engine/fakewebrtccall.h
+++ b/webrtc/media/engine/fakewebrtccall.h
@@ -33,6 +33,10 @@
#include "webrtc/video_receive_stream.h"
#include "webrtc/video_send_stream.h"
+namespace webrtc {
+class RtpContributingSources;
+} // namespace webrtc
+
namespace cricket {
class FakeAudioSendStream final : public webrtc::AudioSendStream {
public:
@@ -97,6 +101,10 @@ class FakeAudioReceiveStream final : public webrtc::AudioReceiveStream {
int GetOutputLevel() const override { return 0; }
void SetSink(std::unique_ptr<webrtc::AudioSinkInterface> sink) override;
void SetGain(float gain) override;
+ const std::vector<webrtc::RtpContributingSource>& GetContributingSources()
+ override {
+ return contributing_sources_;
+ }
int id_ = -1;
webrtc::AudioReceiveStream::Config config_;
@@ -106,6 +114,7 @@ class FakeAudioReceiveStream final : public webrtc::AudioReceiveStream {
float gain_ = 1.0f;
rtc::Buffer last_packet_;
bool started_ = false;
+ std::vector<webrtc::RtpContributingSource> contributing_sources_;
};
class FakeVideoSendStream final

Powered by Google App Engine
This is Rietveld 408576698