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

Side by Side Diff: logging/rtc_event_log/rtc_event_log_unittest_helper.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, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_ 11 #ifndef LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_
12 #define LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_ 12 #define LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_
13 13
14 #include "call/call.h" 14 #include "call/call.h"
15 #include "logging/rtc_event_log/rtc_event_log_parser.h" 15 #include "logging/rtc_event_log/rtc_event_log_parser.h"
16 #include "modules/rtp_rtcp/source/rtp_packet_received.h"
17 #include "modules/rtp_rtcp/source/rtp_packet_to_send.h"
16 18
17 namespace webrtc { 19 namespace webrtc {
18 20
19 class RtcEventLogTestHelper { 21 class RtcEventLogTestHelper {
20 public: 22 public:
21 static void VerifyVideoReceiveStreamConfig( 23 static void VerifyVideoReceiveStreamConfig(
22 const ParsedRtcEventLog& parsed_log, 24 const ParsedRtcEventLog& parsed_log,
23 size_t index, 25 size_t index,
24 const rtclog::StreamConfig& config); 26 const rtclog::StreamConfig& config);
25 static void VerifyVideoSendStreamConfig(const ParsedRtcEventLog& parsed_log, 27 static void VerifyVideoSendStreamConfig(const ParsedRtcEventLog& parsed_log,
26 size_t index, 28 size_t index,
27 const rtclog::StreamConfig& config); 29 const rtclog::StreamConfig& config);
28 static void VerifyAudioReceiveStreamConfig( 30 static void VerifyAudioReceiveStreamConfig(
29 const ParsedRtcEventLog& parsed_log, 31 const ParsedRtcEventLog& parsed_log,
30 size_t index, 32 size_t index,
31 const rtclog::StreamConfig& config); 33 const rtclog::StreamConfig& config);
32 static void VerifyAudioSendStreamConfig(const ParsedRtcEventLog& parsed_log, 34 static void VerifyAudioSendStreamConfig(const ParsedRtcEventLog& parsed_log,
33 size_t index, 35 size_t index,
34 const rtclog::StreamConfig& config); 36 const rtclog::StreamConfig& config);
35 static void VerifyRtpEvent(const ParsedRtcEventLog& parsed_log, 37 static void VerifyIncomingRtpEvent(const ParsedRtcEventLog& parsed_log,
36 size_t index, 38 size_t index,
37 PacketDirection direction, 39 const RtpPacketReceived& expected_packet);
38 const uint8_t* header, 40 static void VerifyOutgoingRtpEvent(const ParsedRtcEventLog& parsed_log,
39 size_t header_size, 41 size_t index,
40 size_t total_size); 42 const RtpPacketToSend& expected_packet);
41 static void VerifyRtcpEvent(const ParsedRtcEventLog& parsed_log, 43 static void VerifyRtcpEvent(const ParsedRtcEventLog& parsed_log,
42 size_t index, 44 size_t index,
43 PacketDirection direction, 45 PacketDirection direction,
44 const uint8_t* packet, 46 const uint8_t* packet,
45 size_t total_size); 47 size_t total_size);
46 static void VerifyPlayoutEvent(const ParsedRtcEventLog& parsed_log, 48 static void VerifyPlayoutEvent(const ParsedRtcEventLog& parsed_log,
47 size_t index, 49 size_t index,
48 uint32_t ssrc); 50 uint32_t ssrc);
49 static void VerifyBweLossEvent(const ParsedRtcEventLog& parsed_log, 51 static void VerifyBweLossEvent(const ParsedRtcEventLog& parsed_log,
50 size_t index, 52 size_t index,
(...skipping 29 matching lines...) Expand all
80 82
81 static void VerifyProbeResultFailure(const ParsedRtcEventLog& parsed_log, 83 static void VerifyProbeResultFailure(const ParsedRtcEventLog& parsed_log,
82 size_t index, 84 size_t index,
83 uint32_t id, 85 uint32_t id,
84 ProbeFailureReason failure_reason); 86 ProbeFailureReason failure_reason);
85 }; 87 };
86 88
87 } // namespace webrtc 89 } // namespace webrtc
88 90
89 #endif // LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_ 91 #endif // LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_
OLDNEW
« no previous file with comments | « logging/rtc_event_log/rtc_event_log_unittest.cc ('k') | logging/rtc_event_log/rtc_event_log_unittest_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698