Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: webrtc/modules/audio_processing/test/unpack.cc

Issue 2358993004: Enable the -Wundef warning for clang (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 // Commandline tool to unpack audioproc debug files. 11 // Commandline tool to unpack audioproc debug files.
12 // 12 //
13 // The debug files are dumped as protobuf blobs. For analysis, it's necessary 13 // The debug files are dumped as protobuf blobs. For analysis, it's necessary
14 // to unpack the file into its component parts: audio and other data. 14 // to unpack the file into its component parts: audio and other data.
15 15
16 #include <stdio.h> 16 #include <stdio.h>
17 17
18 #include <memory> 18 #include <memory>
19 19
20 #include "gflags/gflags.h" 20 #include "gflags/gflags.h"
21 #include "webrtc/base/format_macros.h" 21 #include "webrtc/base/format_macros.h"
22 #include "webrtc/modules/audio_processing/debug.pb.h" 22 #include "webrtc/base/ignore_wundef.h"
23 #include "webrtc/modules/audio_processing/test/protobuf_utils.h" 23 #include "webrtc/modules/audio_processing/test/protobuf_utils.h"
24 #include "webrtc/modules/audio_processing/test/test_utils.h" 24 #include "webrtc/modules/audio_processing/test/test_utils.h"
25 #include "webrtc/typedefs.h" 25 #include "webrtc/typedefs.h"
26 26
27 RTC_PUSH_IGNORING_WUNDEF()
28 #include "webrtc/modules/audio_processing/debug.pb.h"
29 RTC_POP_IGNORING_WUNDEF()
30
27 // TODO(andrew): unpack more of the data. 31 // TODO(andrew): unpack more of the data.
28 DEFINE_string(input_file, "input", "The name of the input stream file."); 32 DEFINE_string(input_file, "input", "The name of the input stream file.");
29 DEFINE_string(output_file, "ref_out", 33 DEFINE_string(output_file, "ref_out",
30 "The name of the reference output stream file."); 34 "The name of the reference output stream file.");
31 DEFINE_string(reverse_file, "reverse", 35 DEFINE_string(reverse_file, "reverse",
32 "The name of the reverse input stream file."); 36 "The name of the reverse input stream file.");
33 DEFINE_string(delay_file, "delay.int32", "The name of the delay file."); 37 DEFINE_string(delay_file, "delay.int32", "The name of the delay file.");
34 DEFINE_string(drift_file, "drift.int32", "The name of the drift file."); 38 DEFINE_string(drift_file, "drift.int32", "The name of the drift file.");
35 DEFINE_string(level_file, "level.int32", "The name of the level file."); 39 DEFINE_string(level_file, "level.int32", "The name of the level file.");
36 DEFINE_string(keypress_file, "keypress.bool", "The name of the keypress file."); 40 DEFINE_string(keypress_file, "keypress.bool", "The name of the keypress file.");
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 327 }
324 328
325 return 0; 329 return 0;
326 } 330 }
327 331
328 } // namespace webrtc 332 } // namespace webrtc
329 333
330 int main(int argc, char* argv[]) { 334 int main(int argc, char* argv[]) {
331 return webrtc::do_main(argc, argv); 335 return webrtc::do_main(argc, argv);
332 } 336 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698