mock_rtpsender.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright 2016 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  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. #ifndef API_TEST_MOCK_RTPSENDER_H_
  11. #define API_TEST_MOCK_RTPSENDER_H_
  12. #include <string>
  13. #include <vector>
  14. #include "api/rtp_sender_interface.h"
  15. #include "test/gmock.h"
  16. namespace webrtc {
  17. class MockRtpSender : public rtc::RefCountedObject<RtpSenderInterface> {
  18. public:
  19. MOCK_METHOD(bool, SetTrack, (MediaStreamTrackInterface*), (override));
  20. MOCK_METHOD(rtc::scoped_refptr<MediaStreamTrackInterface>,
  21. track,
  22. (),
  23. (const override));
  24. MOCK_METHOD(uint32_t, ssrc, (), (const override));
  25. MOCK_METHOD(cricket::MediaType, media_type, (), (const override));
  26. MOCK_METHOD(std::string, id, (), (const override));
  27. MOCK_METHOD(std::vector<std::string>, stream_ids, (), (const override));
  28. MOCK_METHOD(std::vector<RtpEncodingParameters>,
  29. init_send_encodings,
  30. (),
  31. (const override));
  32. MOCK_METHOD(RtpParameters, GetParameters, (), (const override));
  33. MOCK_METHOD(RTCError, SetParameters, (const RtpParameters&), (override));
  34. MOCK_METHOD(rtc::scoped_refptr<DtmfSenderInterface>,
  35. GetDtmfSender,
  36. (),
  37. (const override));
  38. };
  39. } // namespace webrtc
  40. #endif // API_TEST_MOCK_RTPSENDER_H_