| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_CAST_NET_RTP_MOCK_RTP_FEEDBACK_H_ | 5 #ifndef MEDIA_CAST_NET_RTP_MOCK_RTP_FEEDBACK_H_ |
| 6 #define MEDIA_CAST_NET_RTP_MOCK_RTP_FEEDBACK_H_ | 6 #define MEDIA_CAST_NET_RTP_MOCK_RTP_FEEDBACK_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "media/cast/net/rtp/rtp_parser/rtp_feedback.h" | 10 #include "media/cast/net/rtp/rtp_parser/rtp_feedback.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 10 | 12 |
| 11 namespace media { | 13 namespace media { |
| 12 namespace cast { | 14 namespace cast { |
| 13 | 15 |
| 14 class MockRtpFeedback : public RtpFeedback { | 16 class MockRtpFeedback : public RtpFeedback { |
| 15 public: | 17 public: |
| 16 MOCK_METHOD4(OnInitializeDecoder, | 18 MOCK_METHOD4(OnInitializeDecoder, |
| 17 int32_t(const int8_t payloadType, | 19 int32_t(const int8_t payloadType, |
| 18 const int frequency, | 20 const int frequency, |
| 19 const uint8_t channels, | 21 const uint8_t channels, |
| 20 const uint32_t rate)); | 22 const uint32_t rate)); |
| 21 | 23 |
| 22 MOCK_METHOD1(OnPacketTimeout, void(const int32_t id)); | 24 MOCK_METHOD1(OnPacketTimeout, void(const int32_t id)); |
| 23 MOCK_METHOD2(OnReceivedPacket, | 25 MOCK_METHOD2(OnReceivedPacket, |
| 24 void(const int32_t id, const RtpRtcpPacketField packet_type)); | 26 void(const int32_t id, const RtpRtcpPacketField packet_type)); |
| 25 MOCK_METHOD2(OnPeriodicDeadOrAlive, | 27 MOCK_METHOD2(OnPeriodicDeadOrAlive, |
| 26 void(const int32_t id, const RTPAliveType alive)); | 28 void(const int32_t id, const RTPAliveType alive)); |
| 27 MOCK_METHOD2(OnIncomingSSRCChanged, | 29 MOCK_METHOD2(OnIncomingSSRCChanged, |
| 28 void(const int32_t id, const uint32_t ssrc)); | 30 void(const int32_t id, const uint32_t ssrc)); |
| 29 MOCK_METHOD3(OnIncomingCSRCChanged, | 31 MOCK_METHOD3(OnIncomingCSRCChanged, |
| 30 void(const int32_t id, const uint32_t csrc, const bool added)); | 32 void(const int32_t id, const uint32_t csrc, const bool added)); |
| 31 }; | 33 }; |
| 32 | 34 |
| 33 } // namespace cast | 35 } // namespace cast |
| 34 } // namespace media | 36 } // namespace media |
| 35 | 37 |
| 36 #endif // MEDIA_CAST_NET_RTP_MOCK_RTP_FEEDBACK_H_ | 38 #endif // MEDIA_CAST_NET_RTP_MOCK_RTP_FEEDBACK_H_ |
| OLD | NEW |