Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h

Issue 1527003002: [rtp_rtcp] RtcpReceiverTest rewritten using public available interface (observers) instead intermid… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/modules.gyp ('k') | webrtc/modules/rtp_rtcp/source/rtcp_format_remb_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
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 #include "testing/gmock/include/gmock/gmock.h"
15 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
16
17 namespace webrtc {
18 namespace rtcp {
19 class TransportFeedback;
20 } // namespace rtcp
21
22 class MockRtcpPacketTypeCounterObserver : public RtcpPacketTypeCounterObserver {
23 public:
24 MOCK_METHOD2(RtcpPacketTypesCounterUpdated,
25 void(uint32_t, const RtcpPacketTypeCounter&));
26 };
27
28 class MockRtcpIntraFrameObserver : public RtcpIntraFrameObserver {
29 public:
30 MOCK_METHOD1(OnReceivedIntraFrameRequest, void(uint32_t));
31 MOCK_METHOD2(OnReceivedSLI, void(uint32_t, uint8_t));
32 MOCK_METHOD2(OnReceivedRPSI, void(uint32_t, uint64_t));
33 MOCK_METHOD2(OnLocalSsrcChanged, void(uint32_t, uint32_t));
34 };
35
36 class MockRtcpCallbackImpl : public RtcpStatisticsCallback {
37 public:
38 MOCK_METHOD2(StatisticsUpdated, void(const RtcpStatistics&, uint32_t));
39 MOCK_METHOD2(CNameChanged, void(const char*, uint32_t));
40 };
41
42 class MockTransportFeedbackObserver : public TransportFeedbackObserver {
43 public:
44 MOCK_METHOD3(AddPacket, void(uint16_t, size_t, int));
45 MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&));
46 };
47
48 class MockRtcpBandwidthObserver : public RtcpBandwidthObserver {
49 public:
50 MOCK_METHOD1(OnReceivedEstimatedBitrate, void(uint32_t));
51 MOCK_METHOD3(OnReceivedRtcpReceiverReport,
52 void(const ReportBlockList&, int64_t, int64_t));
53 };
54
55 } // namespace webrtc
56 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTCP_OBSERVERS_H_
OLDNEW
« no previous file with comments | « webrtc/modules/modules.gyp ('k') | webrtc/modules/rtp_rtcp/source/rtcp_format_remb_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698