| OLD | NEW |
| 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 rtp::Packet& expected_packet); |
| 39 size_t header_size, | |
| 40 size_t total_size); | |
| 41 static void VerifyRtcpEvent(const ParsedRtcEventLog& parsed_log, | 40 static void VerifyRtcpEvent(const ParsedRtcEventLog& parsed_log, |
| 42 size_t index, | 41 size_t index, |
| 43 PacketDirection direction, | 42 PacketDirection direction, |
| 44 const uint8_t* packet, | 43 const uint8_t* packet, |
| 45 size_t total_size); | 44 size_t total_size); |
| 46 static void VerifyPlayoutEvent(const ParsedRtcEventLog& parsed_log, | 45 static void VerifyPlayoutEvent(const ParsedRtcEventLog& parsed_log, |
| 47 size_t index, | 46 size_t index, |
| 48 uint32_t ssrc); | 47 uint32_t ssrc); |
| 49 static void VerifyBweLossEvent(const ParsedRtcEventLog& parsed_log, | 48 static void VerifyBweLossEvent(const ParsedRtcEventLog& parsed_log, |
| 50 size_t index, | 49 size_t index, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 80 | 79 |
| 81 static void VerifyProbeResultFailure(const ParsedRtcEventLog& parsed_log, | 80 static void VerifyProbeResultFailure(const ParsedRtcEventLog& parsed_log, |
| 82 size_t index, | 81 size_t index, |
| 83 uint32_t id, | 82 uint32_t id, |
| 84 ProbeFailureReason failure_reason); | 83 ProbeFailureReason failure_reason); |
| 85 }; | 84 }; |
| 86 | 85 |
| 87 } // namespace webrtc | 86 } // namespace webrtc |
| 88 | 87 |
| 89 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_ | 88 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_ |
| OLD | NEW |