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 #include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h" | 11 #include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h" |
12 | 12 |
13 #include <string.h> | 13 #include <string.h> |
14 | 14 |
15 #include <fstream> | 15 #include <fstream> |
16 #include <istream> | 16 #include <istream> |
17 #include <utility> | 17 #include <utility> |
18 | 18 |
19 #include "webrtc/base/checks.h" | 19 #include "webrtc/base/checks.h" |
20 #include "webrtc/base/logging.h" | 20 #include "webrtc/base/logging.h" |
21 #include "webrtc/call.h" | 21 #include "webrtc/call/call.h" |
22 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 22 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
23 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 23 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
24 #include "webrtc/system_wrappers/include/file_wrapper.h" | 24 #include "webrtc/system_wrappers/include/file_wrapper.h" |
25 | 25 |
26 namespace webrtc { | 26 namespace webrtc { |
27 | 27 |
28 namespace { | 28 namespace { |
29 MediaType GetRuntimeMediaType(rtclog::MediaType media_type) { | 29 MediaType GetRuntimeMediaType(rtclog::MediaType media_type) { |
30 switch (media_type) { | 30 switch (media_type) { |
31 case rtclog::MediaType::ANY: | 31 case rtclog::MediaType::ANY: |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 if (fraction_loss != nullptr) { | 448 if (fraction_loss != nullptr) { |
449 *fraction_loss = loss_event.fraction_loss(); | 449 *fraction_loss = loss_event.fraction_loss(); |
450 } | 450 } |
451 RTC_CHECK(loss_event.has_total_packets()); | 451 RTC_CHECK(loss_event.has_total_packets()); |
452 if (total_packets != nullptr) { | 452 if (total_packets != nullptr) { |
453 *total_packets = loss_event.total_packets(); | 453 *total_packets = loss_event.total_packets(); |
454 } | 454 } |
455 } | 455 } |
456 | 456 |
457 } // namespace webrtc | 457 } // namespace webrtc |
OLD | NEW |