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.h" | 14 #include "webrtc/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 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 | 18 |
19 class RtcEventLogTestHelper { | 19 class RtcEventLogTestHelper { |
20 public: | 20 public: |
21 static void VerifyReceiveStreamConfig( | 21 static void VerifyVideoReceiveStreamConfig( |
22 const ParsedRtcEventLog& parsed_log, | 22 const ParsedRtcEventLog& parsed_log, |
23 size_t index, | 23 size_t index, |
24 const VideoReceiveStream::Config& config); | 24 const VideoReceiveStream::Config& config); |
25 static void VerifySendStreamConfig(const ParsedRtcEventLog& parsed_log, | 25 static void VerifyVideoSendStreamConfig( |
26 size_t index, | 26 const ParsedRtcEventLog& parsed_log, |
27 const VideoSendStream::Config& config); | 27 size_t index, |
| 28 const VideoSendStream::Config& config); |
| 29 static void VerifyAudioReceiveStreamConfig( |
| 30 const ParsedRtcEventLog& parsed_log, |
| 31 size_t index, |
| 32 const AudioReceiveStream::Config& config); |
| 33 static void VerifyAudioSendStreamConfig( |
| 34 const ParsedRtcEventLog& parsed_log, |
| 35 size_t index, |
| 36 const AudioSendStream::Config& config); |
28 static void VerifyRtpEvent(const ParsedRtcEventLog& parsed_log, | 37 static void VerifyRtpEvent(const ParsedRtcEventLog& parsed_log, |
29 size_t index, | 38 size_t index, |
30 PacketDirection direction, | 39 PacketDirection direction, |
31 MediaType media_type, | 40 MediaType media_type, |
32 const uint8_t* header, | 41 const uint8_t* header, |
33 size_t header_size, | 42 size_t header_size, |
34 size_t total_size); | 43 size_t total_size); |
35 static void VerifyRtcpEvent(const ParsedRtcEventLog& parsed_log, | 44 static void VerifyRtcpEvent(const ParsedRtcEventLog& parsed_log, |
36 size_t index, | 45 size_t index, |
37 PacketDirection direction, | 46 PacketDirection direction, |
(...skipping 11 matching lines...) Expand all Loading... |
49 | 58 |
50 static void VerifyLogStartEvent(const ParsedRtcEventLog& parsed_log, | 59 static void VerifyLogStartEvent(const ParsedRtcEventLog& parsed_log, |
51 size_t index); | 60 size_t index); |
52 static void VerifyLogEndEvent(const ParsedRtcEventLog& parsed_log, | 61 static void VerifyLogEndEvent(const ParsedRtcEventLog& parsed_log, |
53 size_t index); | 62 size_t index); |
54 }; | 63 }; |
55 | 64 |
56 } // namespace webrtc | 65 } // namespace webrtc |
57 | 66 |
58 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_ | 67 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_ |
OLD | NEW |