OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | |
philipel
2016/02/24 11:02:01
2016 :)
danilchap
2016/02/24 12:53:11
Oops.
| |
3 * | |
4 * Use of this source code is governed by a BSD-style license | |
5 * that can be found in the LICENSE file in the root of the source | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #ifndef WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTCP_OBSERVERS_H_ | |
12 #define WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTCP_OBSERVERS_H_ | |
13 /* | |
14 * This file mocks observers used in rtcp receiver. | |
15 */ | |
16 #include "testing/gmock/include/gmock/gmock.h" | |
17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | |
18 | |
19 namespace webrtc { | |
20 namespace rtcp { | |
21 class TransportFeedback; | |
22 } // namespace rtcp | |
23 | |
24 class MockRtcpPacketTypeCounterObserver : public RtcpPacketTypeCounterObserver { | |
25 public: | |
26 MOCK_METHOD2(RtcpPacketTypesCounterUpdated, | |
27 void(uint32_t, const RtcpPacketTypeCounter&)); | |
28 }; | |
29 | |
30 class MockRtcpIntraFrameObserver : public RtcpIntraFrameObserver { | |
31 public: | |
32 MOCK_METHOD1(OnReceivedIntraFrameRequest, void(uint32_t)); | |
33 MOCK_METHOD2(OnReceivedSLI, void(uint32_t, uint8_t)); | |
34 MOCK_METHOD2(OnReceivedRPSI, void(uint32_t, uint64_t)); | |
35 MOCK_METHOD2(OnLocalSsrcChanged, void(uint32_t, uint32_t)); | |
36 }; | |
37 | |
38 class MockRtcpCallbackImpl : public RtcpStatisticsCallback { | |
39 public: | |
40 MOCK_METHOD2(StatisticsUpdated, void(const RtcpStatistics&, uint32_t)); | |
41 MOCK_METHOD2(CNameChanged, void(const char*, uint32_t)); | |
42 }; | |
43 | |
44 class MockTransportFeedbackObserver : public TransportFeedbackObserver { | |
45 public: | |
46 MOCK_METHOD3(AddPacket, void(uint16_t, size_t length, bool)); | |
47 MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&)); | |
48 }; | |
49 | |
50 class MockRtcpBandwidthObserver : public RtcpBandwidthObserver { | |
51 public: | |
52 MOCK_METHOD1(OnReceivedEstimatedBitrate, void(uint32_t)); | |
53 MOCK_METHOD3(OnReceivedRtcpReceiverReport, | |
54 void(const ReportBlockList&, int64_t, int64_t)); | |
55 }; | |
56 | |
57 } // namespace webrtc | |
58 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTCP_OBSERVERS_H_ | |
OLD | NEW |