OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 <inttypes.h> | 11 #include <inttypes.h> |
12 #include <stdio.h> | 12 #include <stdio.h> |
13 | 13 |
14 #include <fstream> | 14 #include <fstream> |
15 #include <iostream> | 15 #include <iostream> |
16 #include <map> | 16 #include <map> |
17 #include <string> | 17 #include <string> |
18 #include <tuple> | 18 #include <tuple> |
19 #include <utility> | 19 #include <utility> |
20 #include <vector> | 20 #include <vector> |
21 | 21 |
22 #include "gflags/gflags.h" | 22 #include "gflags/gflags.h" |
23 #include "webrtc/base/checks.h" | |
24 #include "webrtc/base/ignore_wundef.h" | |
25 #include "webrtc/base/logging.h" | |
26 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 23 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
| 24 #include "webrtc/rtc_base/checks.h" |
| 25 #include "webrtc/rtc_base/ignore_wundef.h" |
| 26 #include "webrtc/rtc_base/logging.h" |
27 | 27 |
28 // Files generated at build-time by the protobuf compiler. | 28 // Files generated at build-time by the protobuf compiler. |
29 RTC_PUSH_IGNORING_WUNDEF() | 29 RTC_PUSH_IGNORING_WUNDEF() |
30 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD | 30 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD |
31 #include "external/webrtc/webrtc/logging/rtc_event_log/rtc_event_log.pb.h" | 31 #include "external/webrtc/webrtc/logging/rtc_event_log/rtc_event_log.pb.h" |
32 #else | 32 #else |
33 #include "webrtc/logging/rtc_event_log/rtc_event_log.pb.h" | 33 #include "webrtc/logging/rtc_event_log/rtc_event_log.pb.h" |
34 #endif | 34 #endif |
35 RTC_POP_IGNORING_WUNDEF() | 35 RTC_POP_IGNORING_WUNDEF() |
36 | 36 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 static_cast<double>(malformed_event_size) / malformed_events, | 243 static_cast<double>(malformed_event_size) / malformed_events, |
244 static_cast<double>(malformed_event_size) / file_size * 100); | 244 static_cast<double>(malformed_event_size) / file_size * 100); |
245 } | 245 } |
246 if (file_size - accumulated_event_size != 0) { | 246 if (file_size - accumulated_event_size != 0) { |
247 printf("WARNING: %" PRId64 " bytes not accounted for\n", | 247 printf("WARNING: %" PRId64 " bytes not accounted for\n", |
248 file_size - accumulated_event_size); | 248 file_size - accumulated_event_size); |
249 } | 249 } |
250 | 250 |
251 return 0; | 251 return 0; |
252 } | 252 } |
OLD | NEW |