OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 "webrtc/modules/audio_processing/test/bitexactness_tools.h" | 11 #include "webrtc/modules/audio_processing/test/bitexactness_tools.h" |
12 | 12 |
13 #include <math.h> | 13 #include <math.h> |
14 #include <algorithm> | 14 #include <algorithm> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/base/array_view.h" | 18 #include "webrtc/rtc_base/array_view.h" |
19 #include "webrtc/test/testsupport/fileutils.h" | 19 #include "webrtc/test/testsupport/fileutils.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 namespace test { | 22 namespace test { |
23 | 23 |
24 std::string GetApmRenderTestVectorFileName(int sample_rate_hz) { | 24 std::string GetApmRenderTestVectorFileName(int sample_rate_hz) { |
25 switch (sample_rate_hz) { | 25 switch (sample_rate_hz) { |
26 case 8000: | 26 case 8000: |
27 return ResourcePath("far8_stereo", "pcm"); | 27 return ResourcePath("far8_stereo", "pcm"); |
28 case 16000: | 28 case 16000: |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 << " Actual values : " | 137 << " Actual values : " |
138 << print_vector_in_c_format(output, | 138 << print_vector_in_c_format(output, |
139 std::min(output.size(), reference.size())) | 139 std::min(output.size(), reference.size())) |
140 << std::endl | 140 << std::endl |
141 << " Expected values: " | 141 << " Expected values: " |
142 << print_vector_in_c_format(reference, reference.size()) << std::endl; | 142 << print_vector_in_c_format(reference, reference.size()) << std::endl; |
143 } | 143 } |
144 | 144 |
145 } // namespace test | 145 } // namespace test |
146 } // namespace webrtc | 146 } // namespace webrtc |
OLD | NEW |