1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MEDIA_CAST_NET_MOCK_CAST_TRANSPORT_SENDER_H_
6 #define MEDIA_CAST_NET_MOCK_CAST_TRANSPORT_SENDER_H_
8 #include "media/cast/net/cast_transport_sender.h"
9 #include "testing/gmock/include/gmock/gmock.h"
14 class MockCastTransportSender
: public CastTransportSender
{
16 MockCastTransportSender();
17 virtual ~MockCastTransportSender();
19 MOCK_METHOD3(InitializeAudio
, void(
20 const CastTransportRtpConfig
& config
,
21 const RtcpCastMessageCallback
& cast_message_cb
,
22 const RtcpRttCallback
& rtt_cb
));
23 MOCK_METHOD3(InitializeVideo
, void(
24 const CastTransportRtpConfig
& config
,
25 const RtcpCastMessageCallback
& cast_message_cb
,
26 const RtcpRttCallback
& rtt_cb
));
27 MOCK_METHOD2(InsertFrame
, void(uint32 ssrc
, const EncodedFrame
& frame
));
28 MOCK_METHOD3(SendSenderReport
, void(
30 base::TimeTicks current_time
,
31 uint32 current_time_as_rtp_timestamp
));
32 MOCK_METHOD2(CancelSendingFrames
, void(
34 const std::vector
<uint32
>& frame_ids
));
35 MOCK_METHOD2(ResendFrameForKickstart
, void(uint32 ssrc
, uint32 frame_id
));
36 MOCK_METHOD0(PacketReceiverForTesting
, PacketReceiverCallback());
37 MOCK_METHOD1(AddValidSsrc
, void(uint32 ssrc
));
38 MOCK_METHOD7(SendRtcpFromRtpReceiver
, void(
41 const RtcpTimeData
& time_data
,
42 const RtcpCastMessage
* cast_message
,
43 base::TimeDelta target_delay
,
44 const ReceiverRtcpEventSubscriber::RtcpEvents
* rtcp_events
,
45 const RtpReceiverStatistics
* rtp_receiver_statistics
));
51 #endif // MEDIA_CAST_NET_MOCK_CAST_TRANSPORT_SENDER_H_