OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #ifndef WEBRTC_CALL_RTC_EVENT_LOG_UNITTEST_HELPER_H_ | |
12 #define WEBRTC_CALL_RTC_EVENT_LOG_UNITTEST_HELPER_H_ | |
13 | |
14 #include "webrtc/call.h" | |
15 #include "webrtc/call/rtc_event_log_parser.h" | |
16 | |
17 namespace webrtc { | |
18 | |
19 class RtcEventLogTestHelper { | |
20 public: | |
21 static void VerifyReceiveStreamConfig( | |
22 const ParsedRtcEventLog& parsed_log, | |
23 size_t index, | |
24 const VideoReceiveStream::Config& config); | |
25 static void VerifySendStreamConfig(const ParsedRtcEventLog& parsed_log, | |
26 size_t index, | |
27 const VideoSendStream::Config& config); | |
28 static void VerifyRtpEvent(const ParsedRtcEventLog& parsed_log, | |
29 size_t index, | |
30 PacketDirection direction, | |
31 MediaType media_type, | |
32 const uint8_t* header, | |
33 size_t header_size, | |
34 size_t total_size); | |
35 static void VerifyRtcpEvent(const ParsedRtcEventLog& parsed_log, | |
36 size_t index, | |
37 PacketDirection direction, | |
38 MediaType media_type, | |
39 const uint8_t* packet, | |
40 size_t total_size); | |
41 static void VerifyPlayoutEvent(const ParsedRtcEventLog& parsed_log, | |
42 size_t index, | |
43 uint32_t ssrc); | |
44 static void VerifyBweLossEvent(const ParsedRtcEventLog& parsed_log, | |
45 size_t index, | |
46 int32_t bitrate, | |
47 uint8_t fraction_loss, | |
48 int32_t total_packets); | |
49 | |
50 static void VerifyLogStartEvent(const ParsedRtcEventLog& parsed_log, | |
51 size_t index); | |
52 static void VerifyLogEndEvent(const ParsedRtcEventLog& parsed_log, | |
53 size_t index); | |
54 }; | |
55 | |
56 } // namespace webrtc | |
57 | |
58 #endif // WEBRTC_CALL_RTC_EVENT_LOG_UNITTEST_HELPER_H_ | |
OLD | NEW |