2018-02-21 13:07:13 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018 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.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef CALL_TEST_MOCK_RTP_TRANSPORT_CONTROLLER_SEND_H_
|
|
|
|
|
#define CALL_TEST_MOCK_RTP_TRANSPORT_CONTROLLER_SEND_H_
|
|
|
|
|
|
2018-07-17 16:03:46 +02:00
|
|
|
#include <map>
|
2018-10-04 15:21:55 +02:00
|
|
|
#include <memory>
|
2018-02-21 13:07:13 +01:00
|
|
|
#include <string>
|
2018-07-17 16:03:46 +02:00
|
|
|
#include <vector>
|
2018-02-21 13:07:13 +01:00
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
#include "api/crypto/crypto_options.h"
|
|
|
|
|
#include "api/crypto/frame_encryptor_interface.h"
|
2019-09-17 14:47:38 +02:00
|
|
|
#include "api/transport/bitrate_settings.h"
|
2018-02-21 13:07:13 +01:00
|
|
|
#include "call/rtp_transport_controller_send_interface.h"
|
2018-02-21 17:30:36 +01:00
|
|
|
#include "modules/pacing/packet_router.h"
|
2018-10-15 21:06:26 +02:00
|
|
|
#include "rtc_base/network/sent_packet.h"
|
2019-01-11 09:11:00 -08:00
|
|
|
#include "rtc_base/network_route.h"
|
2018-02-21 17:30:36 +01:00
|
|
|
#include "rtc_base/rate_limiter.h"
|
2018-02-21 13:07:13 +01:00
|
|
|
#include "test/gmock.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
class MockRtpTransportControllerSend
|
|
|
|
|
: public RtpTransportControllerSendInterface {
|
|
|
|
|
public:
|
2019-03-29 15:33:01 +00:00
|
|
|
MOCK_METHOD9(
|
2018-07-19 10:34:38 +02:00
|
|
|
CreateRtpVideoSender,
|
2018-12-18 13:01:47 -08:00
|
|
|
RtpVideoSenderInterface*(std::map<uint32_t, RtpState>,
|
2018-07-17 16:03:46 +02:00
|
|
|
const std::map<uint32_t, RtpPayloadState>&,
|
|
|
|
|
const RtpConfig&,
|
2018-11-09 13:17:39 -08:00
|
|
|
int rtcp_report_interval_ms,
|
2018-07-17 16:03:46 +02:00
|
|
|
Transport*,
|
|
|
|
|
const RtpSenderObservers&,
|
2018-10-04 15:21:55 +02:00
|
|
|
RtcEventLog*,
|
2018-10-17 17:27:25 -07:00
|
|
|
std::unique_ptr<FecController>,
|
|
|
|
|
const RtpSenderFrameEncryptionConfig&));
|
2018-07-19 10:34:38 +02:00
|
|
|
MOCK_METHOD1(DestroyRtpVideoSender, void(RtpVideoSenderInterface*));
|
2018-05-04 14:08:15 +02:00
|
|
|
MOCK_METHOD0(GetWorkerQueue, rtc::TaskQueue*());
|
2018-02-21 13:07:13 +01:00
|
|
|
MOCK_METHOD0(packet_router, PacketRouter*());
|
2019-07-24 11:38:03 +02:00
|
|
|
MOCK_METHOD0(network_state_estimate_observer,
|
|
|
|
|
NetworkStateEstimateObserver*());
|
2018-02-21 13:07:13 +01:00
|
|
|
MOCK_METHOD0(transport_feedback_observer, TransportFeedbackObserver*());
|
2019-07-24 14:52:55 +02:00
|
|
|
MOCK_METHOD0(packet_sender, RtpPacketSender*());
|
2019-09-18 18:31:52 +02:00
|
|
|
MOCK_METHOD1(SetAllocatedSendBitrateLimits, void(BitrateAllocationLimits));
|
2018-02-21 13:07:13 +01:00
|
|
|
MOCK_METHOD1(SetPacingFactor, void(float));
|
|
|
|
|
MOCK_METHOD1(SetQueueTimeLimit, void(int));
|
2019-10-29 17:18:51 +01:00
|
|
|
MOCK_METHOD0(GetStreamFeedbackProvider, StreamFeedbackProvider*());
|
2018-03-12 15:59:12 +01:00
|
|
|
MOCK_METHOD1(RegisterTargetTransferRateObserver,
|
|
|
|
|
void(TargetTransferRateObserver*));
|
2018-02-21 13:07:13 +01:00
|
|
|
MOCK_METHOD2(OnNetworkRouteChanged,
|
|
|
|
|
void(const std::string&, const rtc::NetworkRoute&));
|
|
|
|
|
MOCK_METHOD1(OnNetworkAvailability, void(bool));
|
|
|
|
|
MOCK_METHOD0(GetBandwidthObserver, RtcpBandwidthObserver*());
|
|
|
|
|
MOCK_CONST_METHOD0(GetPacerQueuingDelayMs, int64_t());
|
2019-07-29 16:38:27 +02:00
|
|
|
MOCK_CONST_METHOD0(GetFirstPacketTime, absl::optional<Timestamp>());
|
2018-02-21 13:07:13 +01:00
|
|
|
MOCK_METHOD1(EnablePeriodicAlrProbing, void(bool));
|
|
|
|
|
MOCK_METHOD1(OnSentPacket, void(const rtc::SentPacket&));
|
|
|
|
|
MOCK_METHOD1(SetSdpBitrateParameters, void(const BitrateConstraints&));
|
|
|
|
|
MOCK_METHOD1(SetClientBitratePreferences, void(const BitrateSettings&));
|
2018-10-04 15:21:55 +02:00
|
|
|
MOCK_METHOD1(OnTransportOverheadChanged, void(size_t));
|
2019-07-24 14:52:55 +02:00
|
|
|
MOCK_METHOD1(AccountForAudioPacketsInPacedSender, void(bool));
|
2019-06-13 17:48:53 +02:00
|
|
|
MOCK_METHOD1(OnReceivedPacket, void(const ReceivedPacket&));
|
2018-02-21 13:07:13 +01:00
|
|
|
};
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
#endif // CALL_TEST_MOCK_RTP_TRANSPORT_CONTROLLER_SEND_H_
|