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

Side by Side Diff: webrtc/common_audio/resampler/sinc_resampler_unittest.cc

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! Created 5 years, 1 month 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 "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 #include "webrtc/base/scoped_ptr.h" 21 #include "webrtc/base/scoped_ptr.h"
22 #include "webrtc/common_audio/resampler/sinc_resampler.h" 22 #include "webrtc/common_audio/resampler/sinc_resampler.h"
23 #include "webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.h" 23 #include "webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.h"
24 #include "webrtc/system_wrappers/interface/cpu_features_wrapper.h" 24 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h"
25 #include "webrtc/system_wrappers/interface/stringize_macros.h" 25 #include "webrtc/system_wrappers/include/stringize_macros.h"
26 #include "webrtc/system_wrappers/interface/tick_util.h" 26 #include "webrtc/system_wrappers/include/tick_util.h"
27 #include "webrtc/test/test_suite.h" 27 #include "webrtc/test/test_suite.h"
28 28
29 using testing::_; 29 using testing::_;
30 30
31 namespace webrtc { 31 namespace webrtc {
32 32
33 static const double kSampleRateRatio = 192000.0 / 44100.0; 33 static const double kSampleRateRatio = 192000.0 / 44100.0;
34 static const double kKernelInterpolationFactor = 0.5; 34 static const double kKernelInterpolationFactor = 0.5;
35 35
36 // Helper class to ensure ChunkedResample() functions properly. 36 // Helper class to ensure ChunkedResample() functions properly.
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 std::tr1::make_tuple(11025, 192000, kResamplingRMSError, -62.61), 380 std::tr1::make_tuple(11025, 192000, kResamplingRMSError, -62.61),
381 std::tr1::make_tuple(16000, 192000, kResamplingRMSError, -63.14), 381 std::tr1::make_tuple(16000, 192000, kResamplingRMSError, -63.14),
382 std::tr1::make_tuple(22050, 192000, kResamplingRMSError, -62.42), 382 std::tr1::make_tuple(22050, 192000, kResamplingRMSError, -62.42),
383 std::tr1::make_tuple(32000, 192000, kResamplingRMSError, -63.38), 383 std::tr1::make_tuple(32000, 192000, kResamplingRMSError, -63.38),
384 std::tr1::make_tuple(44100, 192000, kResamplingRMSError, -62.63), 384 std::tr1::make_tuple(44100, 192000, kResamplingRMSError, -62.63),
385 std::tr1::make_tuple(48000, 192000, kResamplingRMSError, -73.44), 385 std::tr1::make_tuple(48000, 192000, kResamplingRMSError, -73.44),
386 std::tr1::make_tuple(96000, 192000, kResamplingRMSError, -73.52), 386 std::tr1::make_tuple(96000, 192000, kResamplingRMSError, -73.52),
387 std::tr1::make_tuple(192000, 192000, kResamplingRMSError, -73.52))); 387 std::tr1::make_tuple(192000, 192000, kResamplingRMSError, -73.52)));
388 388
389 } // namespace webrtc 389 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/common_audio/resampler/sinc_resampler.cc ('k') | webrtc/common_audio/signal_processing/complex_bit_reverse_arm.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698