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

Unified 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, 4 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« 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