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

Unified Diff: logging/rtc_event_log/mock/mock_rtc_event_log.h

Issue 2997973002: Split LogRtpHeader and LogRtcpPacket into separate versions for incoming and outgoing packets.
Patch Set: Split VerifyRtpEvent into one incoming and one outgoing version. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « logging/BUILD.gn ('k') | logging/rtc_event_log/rtc_event_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logging/rtc_event_log/mock/mock_rtc_event_log.h
diff --git a/logging/rtc_event_log/mock/mock_rtc_event_log.h b/logging/rtc_event_log/mock/mock_rtc_event_log.h
index eb0d9b9596c9d6d285b7a8fb923fb81248ab125c..d84a39e5be944d2ce5f962168e6ab4a3612878fc 100644
--- a/logging/rtc_event_log/mock/mock_rtc_event_log.h
+++ b/logging/rtc_event_log/mock/mock_rtc_event_log.h
@@ -16,6 +16,8 @@
#include "logging/rtc_event_log/rtc_event_log.h"
#include "logging/rtc_event_log/rtc_stream_config.h"
#include "modules/audio_coding/audio_network_adaptor/include/audio_network_adaptor.h"
+#include "modules/rtp_rtcp/source/rtp_packet_received.h"
+#include "modules/rtp_rtcp/source/rtp_packet_to_send.h"
#include "test/gmock.h"
namespace webrtc {
@@ -42,21 +44,16 @@ class MockRtcEventLog : public RtcEventLog {
MOCK_METHOD1(LogAudioSendStreamConfig,
void(const rtclog::StreamConfig& config));
- MOCK_METHOD3(LogRtpHeader,
- void(PacketDirection direction,
- const uint8_t* header,
- size_t packet_length));
-
- MOCK_METHOD4(LogRtpHeader,
- void(PacketDirection direction,
- const uint8_t* header,
- size_t packet_length,
- int probe_cluster_id));
-
- MOCK_METHOD3(LogRtcpPacket,
- void(PacketDirection direction,
- const uint8_t* packet,
- size_t length));
+ MOCK_METHOD1(LogIncomingRtpHeader, void(const RtpPacketReceived& packet));
+
+ MOCK_METHOD2(LogOutgoingRtpHeader,
+ void(const RtpPacketToSend& packet, int probe_cluster_id));
+
+ MOCK_METHOD1(LogIncomingRtcpPacket,
+ void(rtc::ArrayView<const uint8_t> packet));
+
+ MOCK_METHOD1(LogOutgoingRtcpPacket,
+ void(rtc::ArrayView<const uint8_t> packet));
MOCK_METHOD1(LogAudioPlayout, void(uint32_t ssrc));
« no previous file with comments | « logging/BUILD.gn ('k') | logging/rtc_event_log/rtc_event_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698