2017-01-16 04:24:10 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2016 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef API_TEST_MOCK_RTPSENDER_H_
|
|
|
|
|
#define API_TEST_MOCK_RTPSENDER_H_
|
2017-01-16 04:24:10 -08:00
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
#include "api/rtp_sender_interface.h"
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "test/gmock.h"
|
2017-01-16 04:24:10 -08:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2022-03-21 17:27:03 +01:00
|
|
|
class MockRtpSender : public RtpSenderInterface {
|
2017-01-16 04:24:10 -08:00
|
|
|
public:
|
2022-03-21 17:27:03 +01:00
|
|
|
static rtc::scoped_refptr<MockRtpSender> Create() {
|
|
|
|
|
return rtc::make_ref_counted<MockRtpSender>();
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-08 15:03:03 +02:00
|
|
|
MOCK_METHOD(bool, SetTrack, (MediaStreamTrackInterface*), (override));
|
|
|
|
|
MOCK_METHOD(rtc::scoped_refptr<MediaStreamTrackInterface>,
|
|
|
|
|
track,
|
|
|
|
|
(),
|
2022-01-25 14:06:33 +01:00
|
|
|
(const, override));
|
|
|
|
|
MOCK_METHOD(uint32_t, ssrc, (), (const, override));
|
|
|
|
|
MOCK_METHOD(cricket::MediaType, media_type, (), (const, override));
|
|
|
|
|
MOCK_METHOD(std::string, id, (), (const, override));
|
|
|
|
|
MOCK_METHOD(std::vector<std::string>, stream_ids, (), (const, override));
|
2020-05-08 15:03:03 +02:00
|
|
|
MOCK_METHOD(std::vector<RtpEncodingParameters>,
|
|
|
|
|
init_send_encodings,
|
|
|
|
|
(),
|
2022-01-25 14:06:33 +01:00
|
|
|
(const, override));
|
|
|
|
|
MOCK_METHOD(RtpParameters, GetParameters, (), (const, override));
|
2020-05-08 15:03:03 +02:00
|
|
|
MOCK_METHOD(RTCError, SetParameters, (const RtpParameters&), (override));
|
|
|
|
|
MOCK_METHOD(rtc::scoped_refptr<DtmfSenderInterface>,
|
|
|
|
|
GetDtmfSender,
|
|
|
|
|
(),
|
2022-01-25 14:06:33 +01:00
|
|
|
(const, override));
|
2017-01-16 04:24:10 -08:00
|
|
|
};
|
|
|
|
|
|
2022-03-21 17:27:03 +01:00
|
|
|
static_assert(!std::is_abstract_v<rtc::RefCountedObject<MockRtpSender>>, "");
|
2017-01-16 04:24:10 -08:00
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // API_TEST_MOCK_RTPSENDER_H_
|