OLD | NEW |
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 #include "webrtc/test/gtest.h" | 10 |
11 #include "webrtc/modules/audio_coding/codecs/isac/fix/source/codec.h" | 11 #include "webrtc/modules/audio_coding/codecs/isac/fix/source/codec.h" |
12 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" | 12 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" |
| 13 #include "webrtc/test/gtest.h" |
13 | 14 |
14 static const int kSamples = FRAMESAMPLES/2; | 15 static const int kSamples = FRAMESAMPLES/2; |
15 static const int32_t spec2time_out_expected_1[kSamples] = { | 16 static const int32_t spec2time_out_expected_1[kSamples] = { |
16 -3366470, -2285227, | 17 -3366470, -2285227, |
17 -3415765, -2310215, -3118030, -2222470, -3030254, -2192091, -3423170, | 18 -3415765, -2310215, -3118030, -2222470, -3030254, -2192091, -3423170, |
18 -2216041, -3305541, -2171936, -3195767, -2095779, -3153304, -2157560, | 19 -2216041, -3305541, -2171936, -3195767, -2095779, -3153304, -2157560, |
19 -3071167, -2032108, -3101190, -1972016, -3103824, -2089118, -3139811, | 20 -3071167, -2032108, -3101190, -1972016, -3103824, -2089118, -3139811, |
20 -1898337, -3102801, -2055082, -3029665, -1854140, -2962586, -1966454, | 21 -1898337, -3102801, -2055082, -3029665, -1854140, -2962586, -1966454, |
21 -3071167, -1894588, -2851743, -1917315, -2848087, -1594932, -2799242, | 22 -3071167, -1894588, -2851743, -1917315, -2848087, -1594932, -2799242, |
22 -1462184, -2845887, -1437599, -2691776, -1329637, -2770659, -1268491, | 23 -1462184, -2845887, -1437599, -2691776, -1329637, -2770659, -1268491, |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 Time2SpecTester(WebRtcIsacfix_Time2SpecNeon); | 184 Time2SpecTester(WebRtcIsacfix_Time2SpecNeon); |
184 #endif | 185 #endif |
185 } | 186 } |
186 | 187 |
187 TEST_F(TransformTest, Spec2TimeTest) { | 188 TEST_F(TransformTest, Spec2TimeTest) { |
188 Spec2TimeTester(WebRtcIsacfix_Spec2TimeC); | 189 Spec2TimeTester(WebRtcIsacfix_Spec2TimeC); |
189 #if defined(WEBRTC_HAS_NEON) | 190 #if defined(WEBRTC_HAS_NEON) |
190 Spec2TimeTester(WebRtcIsacfix_Spec2TimeNeon); | 191 Spec2TimeTester(WebRtcIsacfix_Spec2TimeNeon); |
191 #endif | 192 #endif |
192 } | 193 } |
OLD | NEW |