Updating XTBs based on .GRDs from branch master
[chromium-blink-merge.git] / media / cast / net / mock_cast_transport_sender.h
blob0827e1f9c8cb4711d4db994e5f7b070532709f2b
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"
11 namespace media {
12 namespace cast {
14 class MockCastTransportSender : public CastTransportSender {
15 public:
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(
29 uint32 ssrc,
30 base::TimeTicks current_time,
31 uint32 current_time_as_rtp_timestamp));
32 MOCK_METHOD2(CancelSendingFrames, void(
33 uint32 ssrc,
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(
39 uint32 ssrc,
40 uint32 sender_ssrc,
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));
48 } // namespace cast
49 } // namespace media
51 #endif // MEDIA_CAST_NET_MOCK_CAST_TRANSPORT_SENDER_H_