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

Side by Side Diff: webrtc/common_audio/resampler/sinc_resampler_unittest.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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 // Modified from the Chromium original: 11 // Modified from the Chromium original:
12 // src/media/base/sinc_resampler_unittest.cc 12 // src/media/base/sinc_resampler_unittest.cc
13 13
14 // MSVC++ requires this to be set before any other includes to get M_PI. 14 // MSVC++ requires this to be set before any other includes to get M_PI.
15 #define _USE_MATH_DEFINES 15 #define _USE_MATH_DEFINES
16 16
17 #include <math.h> 17 #include <math.h>
18 18
19 #include <memory> 19 #include <memory>
20 20
21 #include "testing/gmock/include/gmock/gmock.h" 21 #include "webrtc/test/gmock.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "webrtc/test/gtest.h"
23 #include "webrtc/base/timeutils.h" 23 #include "webrtc/base/timeutils.h"
24 #include "webrtc/common_audio/resampler/sinc_resampler.h" 24 #include "webrtc/common_audio/resampler/sinc_resampler.h"
25 #include "webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.h" 25 #include "webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.h"
26 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" 26 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h"
27 #include "webrtc/system_wrappers/include/stringize_macros.h" 27 #include "webrtc/system_wrappers/include/stringize_macros.h"
28 #include "webrtc/test/test_suite.h" 28 #include "webrtc/test/test_suite.h"
29 29
30 using testing::_; 30 using testing::_;
31 31
32 namespace webrtc { 32 namespace webrtc {
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 std::tr1::make_tuple(11025, 192000, kResamplingRMSError, -62.61), 383 std::tr1::make_tuple(11025, 192000, kResamplingRMSError, -62.61),
384 std::tr1::make_tuple(16000, 192000, kResamplingRMSError, -63.14), 384 std::tr1::make_tuple(16000, 192000, kResamplingRMSError, -63.14),
385 std::tr1::make_tuple(22050, 192000, kResamplingRMSError, -62.42), 385 std::tr1::make_tuple(22050, 192000, kResamplingRMSError, -62.42),
386 std::tr1::make_tuple(32000, 192000, kResamplingRMSError, -63.38), 386 std::tr1::make_tuple(32000, 192000, kResamplingRMSError, -63.38),
387 std::tr1::make_tuple(44100, 192000, kResamplingRMSError, -62.63), 387 std::tr1::make_tuple(44100, 192000, kResamplingRMSError, -62.63),
388 std::tr1::make_tuple(48000, 192000, kResamplingRMSError, -73.44), 388 std::tr1::make_tuple(48000, 192000, kResamplingRMSError, -73.44),
389 std::tr1::make_tuple(96000, 192000, kResamplingRMSError, -73.52), 389 std::tr1::make_tuple(96000, 192000, kResamplingRMSError, -73.52),
390 std::tr1::make_tuple(192000, 192000, kResamplingRMSError, -73.52))); 390 std::tr1::make_tuple(192000, 192000, kResamplingRMSError, -73.52)));
391 391
392 } // namespace webrtc 392 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/common_audio/resampler/resampler_unittest.cc ('k') | webrtc/common_audio/ring_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698