Fix for browser_plugin_host_browsertest when embedder is not yet available.
[chromium-blink-merge.git] / media / cast / rtp_receiver / rtp_parser / include / mock / mock_rtp_feedback.h
blobb6647a835be75412ea5bbfb01cbd29a521d91f4f
1 // Copyright 2013 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_RTP_INCLUDE_MOCK_RTP_FEEDBACK_H_
6 #define MEDIA_CAST_RTP_INCLUDE_MOCK_RTP_FEEDBACK_H_
8 #include "media/cast/rtp_receiver/rtp_parser/rtp_feedback.h"
9 #include "testing/gmock/include/gmock/gmock.h"
11 namespace media {
12 namespace cast {
14 class MockRtpFeedback : public RtpFeedback {
15 public:
16 MOCK_METHOD4(OnInitializeDecoder,
17 int32(const int8 payloadType,
18 const int frequency,
19 const uint8 channels,
20 const uint32 rate));
22 MOCK_METHOD1(OnPacketTimeout,
23 void(const int32 id));
24 MOCK_METHOD2(OnReceivedPacket,
25 void(const int32 id, const RtpRtcpPacketType packet_type));
26 MOCK_METHOD2(OnPeriodicDeadOrAlive,
27 void(const int32 id, const RTPAliveType alive));
28 MOCK_METHOD2(OnIncomingSSRCChanged,
29 void(const int32 id, const uint32 ssrc));
30 MOCK_METHOD3(OnIncomingCSRCChanged,
31 void(const int32 id, const uint32 csrc, const bool added));
34 } // namespace cast
35 } // namespace media
37 #endif // MEDIA_CAST_RTP_INCLUDE_MOCK_RTP_FEEDBACK_H_