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/modules/audio_coding/audio_network_adaptor/debug_dump_writer.h" | 11 #include "webrtc/modules/audio_coding/audio_network_adaptor/debug_dump_writer.h" |
12 | 12 |
13 #include "webrtc/base/checks.h" | 13 #include "webrtc/base/checks.h" |
| 14 #include "webrtc/base/ignore_wundef.h" |
14 | 15 |
15 #ifdef WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP | 16 #ifdef WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP |
| 17 RTC_PUSH_IGNORING_WUNDEF() |
16 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD | 18 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD |
17 #include "external/webrtc/webrtc/modules/audio_coding/audio_network_adaptor/debu
g_dump.pb.h" | 19 #include "external/webrtc/webrtc/modules/audio_coding/audio_network_adaptor/debu
g_dump.pb.h" |
18 #else | 20 #else |
19 #include "webrtc/modules/audio_coding/audio_network_adaptor/debug_dump.pb.h" | 21 #include "webrtc/modules/audio_coding/audio_network_adaptor/debug_dump.pb.h" |
20 #endif | 22 #endif |
| 23 RTC_POP_IGNORING_WUNDEF() |
21 #endif | 24 #endif |
22 | 25 |
23 namespace webrtc { | 26 namespace webrtc { |
24 | 27 |
25 #ifdef WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP | 28 #ifdef WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP |
26 namespace { | 29 namespace { |
27 | 30 |
28 using audio_network_adaptor::debug_dump::Event; | 31 using audio_network_adaptor::debug_dump::Event; |
29 using audio_network_adaptor::debug_dump::NetworkMetrics; | 32 using audio_network_adaptor::debug_dump::NetworkMetrics; |
30 using audio_network_adaptor::debug_dump::EncoderRuntimeConfig; | 33 using audio_network_adaptor::debug_dump::EncoderRuntimeConfig; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 129 |
127 DumpEventToFile(event, dump_file_.get()); | 130 DumpEventToFile(event, dump_file_.get()); |
128 #endif // WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP | 131 #endif // WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP |
129 } | 132 } |
130 | 133 |
131 std::unique_ptr<DebugDumpWriter> DebugDumpWriter::Create(FILE* file_handle) { | 134 std::unique_ptr<DebugDumpWriter> DebugDumpWriter::Create(FILE* file_handle) { |
132 return std::unique_ptr<DebugDumpWriter>(new DebugDumpWriterImpl(file_handle)); | 135 return std::unique_ptr<DebugDumpWriter>(new DebugDumpWriterImpl(file_handle)); |
133 } | 136 } |
134 | 137 |
135 } // namespace webrtc | 138 } // namespace webrtc |
OLD | NEW |