| Index: webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h
|
| diff --git a/webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h b/webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..095e3f87ada197b7f6f489678220644f321ca0e0
|
| --- /dev/null
|
| +++ b/webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h
|
| @@ -0,0 +1,56 @@
|
| +/*
|
| + * Copyright (c) 2016 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 WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTCP_OBSERVERS_H_
|
| +#define WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTCP_OBSERVERS_H_
|
| +
|
| +#include "testing/gmock/include/gmock/gmock.h"
|
| +#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
|
| +
|
| +namespace webrtc {
|
| +namespace rtcp {
|
| +class TransportFeedback;
|
| +} // namespace rtcp
|
| +
|
| +class MockRtcpPacketTypeCounterObserver : public RtcpPacketTypeCounterObserver {
|
| + public:
|
| + MOCK_METHOD2(RtcpPacketTypesCounterUpdated,
|
| + void(uint32_t, const RtcpPacketTypeCounter&));
|
| +};
|
| +
|
| +class MockRtcpIntraFrameObserver : public RtcpIntraFrameObserver {
|
| + public:
|
| + MOCK_METHOD1(OnReceivedIntraFrameRequest, void(uint32_t));
|
| + MOCK_METHOD2(OnReceivedSLI, void(uint32_t, uint8_t));
|
| + MOCK_METHOD2(OnReceivedRPSI, void(uint32_t, uint64_t));
|
| + MOCK_METHOD2(OnLocalSsrcChanged, void(uint32_t, uint32_t));
|
| +};
|
| +
|
| +class MockRtcpCallbackImpl : public RtcpStatisticsCallback {
|
| + public:
|
| + MOCK_METHOD2(StatisticsUpdated, void(const RtcpStatistics&, uint32_t));
|
| + MOCK_METHOD2(CNameChanged, void(const char*, uint32_t));
|
| +};
|
| +
|
| +class MockTransportFeedbackObserver : public TransportFeedbackObserver {
|
| + public:
|
| + MOCK_METHOD3(AddPacket, void(uint16_t, size_t, int));
|
| + MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&));
|
| +};
|
| +
|
| +class MockRtcpBandwidthObserver : public RtcpBandwidthObserver {
|
| + public:
|
| + MOCK_METHOD1(OnReceivedEstimatedBitrate, void(uint32_t));
|
| + MOCK_METHOD3(OnReceivedRtcpReceiverReport,
|
| + void(const ReportBlockList&, int64_t, int64_t));
|
| +};
|
| +
|
| +} // namespace webrtc
|
| +#endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTCP_OBSERVERS_H_
|
|
|