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

Side by Side Diff: webrtc/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: Rebase 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 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 WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_ 11 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_
12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_ 12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_
13 13
14 #include "webrtc/call/call.h" 14 #include "webrtc/call/call.h"
15 #include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h" 15 #include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h"
16 #include "webrtc/modules/rtp_rtcp/source/rtp_packet.h"
16 17
17 namespace webrtc { 18 namespace webrtc {
18 19
19 class RtcEventLogTestHelper { 20 class RtcEventLogTestHelper {
20 public: 21 public:
21 static void VerifyVideoReceiveStreamConfig( 22 static void VerifyVideoReceiveStreamConfig(
22 const ParsedRtcEventLog& parsed_log, 23 const ParsedRtcEventLog& parsed_log,
23 size_t index, 24 size_t index,
24 const rtclog::StreamConfig& config); 25 const rtclog::StreamConfig& config);
25 static void VerifyVideoSendStreamConfig(const ParsedRtcEventLog& parsed_log, 26 static void VerifyVideoSendStreamConfig(const ParsedRtcEventLog& parsed_log,
26 size_t index, 27 size_t index,
27 const rtclog::StreamConfig& config); 28 const rtclog::StreamConfig& config);
28 static void VerifyAudioReceiveStreamConfig( 29 static void VerifyAudioReceiveStreamConfig(
29 const ParsedRtcEventLog& parsed_log, 30 const ParsedRtcEventLog& parsed_log,
30 size_t index, 31 size_t index,
31 const rtclog::StreamConfig& config); 32 const rtclog::StreamConfig& config);
32 static void VerifyAudioSendStreamConfig(const ParsedRtcEventLog& parsed_log, 33 static void VerifyAudioSendStreamConfig(const ParsedRtcEventLog& parsed_log,
33 size_t index, 34 size_t index,
34 const rtclog::StreamConfig& config); 35 const rtclog::StreamConfig& config);
35 static void VerifyRtpEvent(const ParsedRtcEventLog& parsed_log, 36 static void VerifyRtpEvent(const ParsedRtcEventLog& parsed_log,
36 size_t index, 37 size_t index,
37 PacketDirection direction, 38 PacketDirection direction,
38 const uint8_t* header, 39 const uint8_t* header,
39 size_t header_size, 40 size_t header_size,
40 size_t total_size); 41 size_t total_size);
42 static void VerifyRtpEvent(const ParsedRtcEventLog& parsed_log,
43 size_t index,
44 PacketDirection direction,
45 const rtp::Packet& expected_packet);
41 static void VerifyRtcpEvent(const ParsedRtcEventLog& parsed_log, 46 static void VerifyRtcpEvent(const ParsedRtcEventLog& parsed_log,
42 size_t index, 47 size_t index,
43 PacketDirection direction, 48 PacketDirection direction,
44 const uint8_t* packet, 49 const uint8_t* packet,
45 size_t total_size); 50 size_t total_size);
46 static void VerifyPlayoutEvent(const ParsedRtcEventLog& parsed_log, 51 static void VerifyPlayoutEvent(const ParsedRtcEventLog& parsed_log,
47 size_t index, 52 size_t index,
48 uint32_t ssrc); 53 uint32_t ssrc);
49 static void VerifyBweLossEvent(const ParsedRtcEventLog& parsed_log, 54 static void VerifyBweLossEvent(const ParsedRtcEventLog& parsed_log,
50 size_t index, 55 size_t index,
(...skipping 29 matching lines...) Expand all
80 85
81 static void VerifyProbeResultFailure(const ParsedRtcEventLog& parsed_log, 86 static void VerifyProbeResultFailure(const ParsedRtcEventLog& parsed_log,
82 size_t index, 87 size_t index,
83 uint32_t id, 88 uint32_t id,
84 ProbeFailureReason failure_reason); 89 ProbeFailureReason failure_reason);
85 }; 90 };
86 91
87 } // namespace webrtc 92 } // namespace webrtc
88 93
89 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_ 94 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698