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

Unified Diff: webrtc/api/test/mock_rtpreceiver.h

Issue 2770233003: Implemented the GetSources() in native code. (Closed)
Patch Set: Merge and add the tests. 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/api/test/mock_rtpreceiver.h
diff --git a/webrtc/api/test/mock_rtpreceiver.h b/webrtc/api/test/mock_rtpreceiver.h
index 25f5c28caa62b3ac2c70121a750b5a0ca9a94cad..a8b92817b222f056009a0c8ce2e12111392c0f63 100644
--- a/webrtc/api/test/mock_rtpreceiver.h
+++ b/webrtc/api/test/mock_rtpreceiver.h
@@ -11,7 +11,9 @@
#ifndef WEBRTC_API_TEST_MOCK_RTPRECEIVER_H_
#define WEBRTC_API_TEST_MOCK_RTPRECEIVER_H_
+#include <memory>
#include <string>
+#include <vector>
#include "webrtc/api/rtpreceiverinterface.h"
#include "webrtc/test/gmock.h"
@@ -27,6 +29,8 @@ class MockRtpReceiver : public rtc::RefCountedObject<RtpReceiverInterface> {
MOCK_CONST_METHOD0(GetParameters, RtpParameters());
MOCK_METHOD1(SetParameters, bool(const RtpParameters&));
MOCK_METHOD1(SetObserver, void(RtpReceiverObserverInterface*));
+ MOCK_METHOD0(GetContributingSources,
+ std::vector<std::unique_ptr<RtpContributingSourceInterface>>());
};
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698