| 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/crypto/frame_decryptor_interface.h" |
| 18 | #include "api/rtp_receiver_interface.h" |
| 19 | #include "test/gmock.h" |
| 20 |
| 21 | namespace webrtc { |
| 22 |
| 23 | class MockRtpReceiver : public rtc::RefCountedObject<RtpReceiverInterface> { |
| 24 | public: |
| 25 | MOCK_METHOD(rtc::scoped_refptr<MediaStreamTrackInterface>, |
| 26 | track, |
| 27 | (), |
| 28 | (const, override)); |
| 29 | MOCK_METHOD(std::vector<rtc::scoped_refptr<MediaStreamInterface>>, |
| 30 | streams, |
| 31 | (), |
| 32 | (const, override)); |
| 33 | MOCK_METHOD(cricket::MediaType, media_type, (), (const, override)); |
| 34 | MOCK_METHOD(std::string, id, (), (const, override)); |
| 35 | MOCK_METHOD(RtpParameters, GetParameters, (), (const, override)); |
| 36 | MOCK_METHOD(bool, |
| 37 | SetParameters, |
| 38 | (const webrtc::RtpParameters& parameters), |
| 39 | (override)); |
| 40 | MOCK_METHOD(void, SetObserver, (RtpReceiverObserverInterface*), (override)); |
| 41 | MOCK_METHOD(void, |
| 42 | SetJitterBufferMinimumDelay, |
| 43 | (absl::optional<double>), |
| 44 | (override)); |
| 45 | MOCK_METHOD(std::vector<RtpSource>, GetSources, (), (const, override)); |
| 46 | MOCK_METHOD(void, |
| 47 | SetFrameDecryptor, |
| 48 | (rtc::scoped_refptr<webrtc::FrameDecryptorInterface>), |
| 49 | (override)); |
| 50 | MOCK_METHOD(rtc::scoped_refptr<webrtc::FrameDecryptorInterface>, |
| 51 | GetFrameDecryptor, |
| 52 | (), |
| 53 | (const, override)); |
| 54 | }; |
| 55 |
| 56 | } // namespace webrtc |
| 57 |
| 58 | #endif // API_TEST_MOCK_RTPRECEIVER_H_ |
| 59 |