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

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

Issue 2969623003: Update includes for webrtc/{base => rtc_base} rename (2/3) (Closed)
Patch Set: Rebased onto 224e65939af87443addfc5bb500fbf434728bd1c and restored sorting in clock.cc Created 3 years, 5 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 <algorithm> 19 #include <algorithm>
20 #include <memory> 20 #include <memory>
21 21
22 #include "webrtc/base/stringize_macros.h"
23 #include "webrtc/base/timeutils.h"
24 #include "webrtc/common_audio/resampler/sinc_resampler.h" 22 #include "webrtc/common_audio/resampler/sinc_resampler.h"
25 #include "webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.h" 23 #include "webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.h"
24 #include "webrtc/rtc_base/stringize_macros.h"
25 #include "webrtc/rtc_base/timeutils.h"
26 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" 26 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h"
27 #include "webrtc/test/gmock.h" 27 #include "webrtc/test/gmock.h"
28 #include "webrtc/test/gtest.h" 28 #include "webrtc/test/gtest.h"
29 29
30 using testing::_; 30 using testing::_;
31 31
32 namespace webrtc { 32 namespace webrtc {
33 33
34 static const double kSampleRateRatio = 192000.0 / 44100.0; 34 static const double kSampleRateRatio = 192000.0 / 44100.0;
35 static const double kKernelInterpolationFactor = 0.5; 35 static const double kKernelInterpolationFactor = 0.5;
(...skipping 347 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/sinc_resampler.cc ('k') | webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698