| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 |
| 11 | #ifndef API_TEST_MOCK_RTPRECEIVER_H_ |
| 12 | #define API_TEST_MOCK_RTPRECEIVER_H_ |
| 13 |
| 14 | #include <string> |
| 15 | #include <vector> |
| 16 |
| 17 | #include "api/rtp_receiver_interface.h" |
| 18 | #include "test/gmock.h" |
| 19 |
| 20 | namespace webrtc { |
| 21 |
| 22 | class MockRtpReceiver : public rtc::RefCountedObject<RtpReceiverInterface> { |
| 23 | public: |
| 24 | MOCK_METHOD(rtc::scoped_refptr<MediaStreamTrackInterface>, |
| 25 | track, |
| 26 | (), |
| 27 | (const, override)); |
| 28 | MOCK_METHOD(std::vector<rtc::scoped_refptr<MediaStreamInterface>>, |
| 29 | streams, |
| 30 | (), |
| 31 | (const, override)); |
| 32 | MOCK_METHOD(cricket::MediaType, media_type, (), (const, override)); |
| 33 | MOCK_METHOD(std::string, id, (), (const, override)); |
| 34 | MOCK_METHOD(RtpParameters, GetParameters, (), (const, override)); |
| 35 | MOCK_METHOD(void, SetObserver, (RtpReceiverObserverInterface*), (override)); |
| 36 | MOCK_METHOD(void, |
| 37 | SetJitterBufferMinimumDelay, |
| 38 | (absl::optional<double>), |
| 39 | (override)); |
| 40 | MOCK_METHOD(std::vector<RtpSource>, GetSources, (), (const, override)); |
| 41 | }; |
| 42 |
| 43 | } // namespace webrtc |
| 44 |
| 45 | #endif // API_TEST_MOCK_RTPRECEIVER_H_ |
| 46 |