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

Side by Side Diff: webrtc/common_audio/resampler/push_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 #include <algorithm> 11 #include <algorithm>
12 #include <cmath> 12 #include <cmath>
13 #include <cstring> 13 #include <cstring>
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/base/timeutils.h"
17 #include "webrtc/common_audio/include/audio_util.h" 16 #include "webrtc/common_audio/include/audio_util.h"
18 #include "webrtc/common_audio/resampler/push_sinc_resampler.h" 17 #include "webrtc/common_audio/resampler/push_sinc_resampler.h"
19 #include "webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.h" 18 #include "webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.h"
19 #include "webrtc/rtc_base/timeutils.h"
20 #include "webrtc/test/gmock.h" 20 #include "webrtc/test/gmock.h"
21 #include "webrtc/test/gtest.h" 21 #include "webrtc/test/gtest.h"
22 #include "webrtc/typedefs.h" 22 #include "webrtc/typedefs.h"
23 23
24 namespace webrtc { 24 namespace webrtc {
25 namespace { 25 namespace {
26 26
27 // Almost all conversions have an RMS error of around -14 dbFS. 27 // Almost all conversions have an RMS error of around -14 dbFS.
28 const double kResamplingRMSError = -14.42; 28 const double kResamplingRMSError = -14.42;
29 29
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // To 32 kHz 329 // To 32 kHz
330 ::testing::make_tuple(8000, 32000, kResamplingRMSError, -70.30), 330 ::testing::make_tuple(8000, 32000, kResamplingRMSError, -70.30),
331 ::testing::make_tuple(16000, 32000, kResamplingRMSError, -75.51), 331 ::testing::make_tuple(16000, 32000, kResamplingRMSError, -75.51),
332 ::testing::make_tuple(32000, 32000, kResamplingRMSError, -75.51), 332 ::testing::make_tuple(32000, 32000, kResamplingRMSError, -75.51),
333 ::testing::make_tuple(44100, 32000, -16.44, -51.10), 333 ::testing::make_tuple(44100, 32000, -16.44, -51.10),
334 ::testing::make_tuple(48000, 32000, -16.90, -44.03), 334 ::testing::make_tuple(48000, 32000, -16.90, -44.03),
335 ::testing::make_tuple(96000, 32000, -19.61, -18.04), 335 ::testing::make_tuple(96000, 32000, -19.61, -18.04),
336 ::testing::make_tuple(192000, 32000, -21.02, -10.94))); 336 ::testing::make_tuple(192000, 32000, -21.02, -10.94)));
337 337
338 } // namespace webrtc 338 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/common_audio/resampler/push_sinc_resampler.cc ('k') | webrtc/common_audio/resampler/sinc_resampler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698