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 "testing/gtest/include/gtest/gtest.h" | 10 #include "webrtc/test/gtest.h" |
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 | 13 |
14 static const int kSamples = FRAMESAMPLES/2; | 14 static const int kSamples = FRAMESAMPLES/2; |
15 static const int32_t spec2time_out_expected_1[kSamples] = { | 15 static const int32_t spec2time_out_expected_1[kSamples] = { |
16 -3366470, -2285227, | 16 -3366470, -2285227, |
17 -3415765, -2310215, -3118030, -2222470, -3030254, -2192091, -3423170, | 17 -3415765, -2310215, -3118030, -2222470, -3030254, -2192091, -3423170, |
18 -2216041, -3305541, -2171936, -3195767, -2095779, -3153304, -2157560, | 18 -2216041, -3305541, -2171936, -3195767, -2095779, -3153304, -2157560, |
19 -3071167, -2032108, -3101190, -1972016, -3103824, -2089118, -3139811, | 19 -3071167, -2032108, -3101190, -1972016, -3103824, -2089118, -3139811, |
20 -1898337, -3102801, -2055082, -3029665, -1854140, -2962586, -1966454, | 20 -1898337, -3102801, -2055082, -3029665, -1854140, -2962586, -1966454, |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 Time2SpecTester(WebRtcIsacfix_Time2SpecNeon); | 183 Time2SpecTester(WebRtcIsacfix_Time2SpecNeon); |
184 #endif | 184 #endif |
185 } | 185 } |
186 | 186 |
187 TEST_F(TransformTest, Spec2TimeTest) { | 187 TEST_F(TransformTest, Spec2TimeTest) { |
188 Spec2TimeTester(WebRtcIsacfix_Spec2TimeC); | 188 Spec2TimeTester(WebRtcIsacfix_Spec2TimeC); |
189 #if defined(WEBRTC_HAS_NEON) | 189 #if defined(WEBRTC_HAS_NEON) |
190 Spec2TimeTester(WebRtcIsacfix_Spec2TimeNeon); | 190 Spec2TimeTester(WebRtcIsacfix_Spec2TimeNeon); |
191 #endif | 191 #endif |
192 } | 192 } |
OLD | NEW |