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

Side by Side Diff: webrtc/modules/audio_processing/test/process_test.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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 <math.h> 11 #include <math.h>
12 #include <stdio.h> 12 #include <stdio.h>
13 #include <string.h> 13 #include <string.h>
14 #ifdef WEBRTC_ANDROID 14 #ifdef WEBRTC_ANDROID
15 #include <sys/stat.h> 15 #include <sys/stat.h>
16 #endif 16 #endif
17 17
18 #include <algorithm> 18 #include <algorithm>
19 #include <memory> 19 #include <memory>
20 20
21 #include "webrtc/base/format_macros.h" 21 #include "webrtc/base/format_macros.h"
22 #include "webrtc/base/ignore_wundef.h"
22 #include "webrtc/base/timeutils.h" 23 #include "webrtc/base/timeutils.h"
23 #include "webrtc/modules/audio_processing/include/audio_processing.h" 24 #include "webrtc/modules/audio_processing/include/audio_processing.h"
24 #include "webrtc/modules/audio_processing/include/config.h" 25 #include "webrtc/modules/audio_processing/include/config.h"
25 #include "webrtc/modules/audio_processing/test/protobuf_utils.h" 26 #include "webrtc/modules/audio_processing/test/protobuf_utils.h"
26 #include "webrtc/modules/audio_processing/test/test_utils.h" 27 #include "webrtc/modules/audio_processing/test/test_utils.h"
27 #include "webrtc/modules/include/module_common_types.h" 28 #include "webrtc/modules/include/module_common_types.h"
28 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" 29 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h"
30 #include "webrtc/test/gtest.h"
29 #include "webrtc/test/testsupport/fileutils.h" 31 #include "webrtc/test/testsupport/fileutils.h"
30 #include "webrtc/test/testsupport/perf_test.h" 32 #include "webrtc/test/testsupport/perf_test.h"
33
34 RTC_PUSH_IGNORING_WUNDEF()
31 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD 35 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD
32 #include "gtest/gtest.h"
33 #include "external/webrtc/webrtc/modules/audio_processing/debug.pb.h" 36 #include "external/webrtc/webrtc/modules/audio_processing/debug.pb.h"
34 #else 37 #else
35 #include "testing/gtest/include/gtest/gtest.h"
36 #include "webrtc/modules/audio_processing/debug.pb.h" 38 #include "webrtc/modules/audio_processing/debug.pb.h"
37 #endif 39 #endif
40 RTC_POP_IGNORING_WUNDEF()
38 41
39 namespace webrtc { 42 namespace webrtc {
40 43
41 using webrtc::audioproc::Event; 44 using webrtc::audioproc::Event;
42 using webrtc::audioproc::Init; 45 using webrtc::audioproc::Init;
43 using webrtc::audioproc::ReverseStream; 46 using webrtc::audioproc::ReverseStream;
44 using webrtc::audioproc::Stream; 47 using webrtc::audioproc::Stream;
45 48
46 namespace { 49 namespace {
47 50
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 } // namespace 1159 } // namespace
1157 } // namespace webrtc 1160 } // namespace webrtc
1158 1161
1159 int main(int argc, char* argv[]) { 1162 int main(int argc, char* argv[]) {
1160 webrtc::void_main(argc, argv); 1163 webrtc::void_main(argc, argv);
1161 1164
1162 // Optional, but removes memory leak noise from Valgrind. 1165 // Optional, but removes memory leak noise from Valgrind.
1163 google::protobuf::ShutdownProtobufLibrary(); 1166 google::protobuf::ShutdownProtobufLibrary();
1164 return 0; 1167 return 0;
1165 } 1168 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/test/debug_dump_test.cc ('k') | webrtc/modules/audio_processing/test/protobuf_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698