You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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_METHOD1(SetTrack, bool(MediaStreamTrackInterface*));
  20. MOCK_CONST_METHOD0(track, rtc::scoped_refptr<MediaStreamTrackInterface>());
  21. MOCK_CONST_METHOD0(ssrc, uint32_t());
  22. MOCK_CONST_METHOD0(media_type, cricket::MediaType());
  23. MOCK_CONST_METHOD0(id, std::string());
  24. MOCK_CONST_METHOD0(stream_ids, std::vector<std::string>());
  25. MOCK_CONST_METHOD0(init_send_encodings, std::vector<RtpEncodingParameters>());
  26. MOCK_CONST_METHOD0(GetParameters, RtpParameters());
  27. MOCK_METHOD1(SetParameters, RTCError(const RtpParameters&));
  28. MOCK_CONST_METHOD0(GetDtmfSender, rtc::scoped_refptr<DtmfSenderInterface>());
  29. };
  30. } // namespace webrtc
  31. #endif // API_TEST_MOCK_RTPSENDER_H_