OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TEST_TEST_UTILS_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TEST_TEST_UTILS_H_ |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TEST_TEST_UTILS_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TEST_TEST_UTILS_H_ |
13 | 13 |
14 #include <math.h> | 14 #include <math.h> |
15 #include <iterator> | 15 #include <iterator> |
16 #include <limits> | 16 #include <limits> |
17 #include <string> | 17 #include <string> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
20 #include "webrtc/base/constructormagic.h" | 20 #include "webrtc/base/constructormagic.h" |
21 #include "webrtc/base/scoped_ptr.h" | 21 #include "webrtc/base/scoped_ptr.h" |
22 #include "webrtc/common_audio/channel_buffer.h" | 22 #include "webrtc/common_audio/channel_buffer.h" |
23 #include "webrtc/common_audio/wav_file.h" | 23 #include "webrtc/common_audio/wav_file.h" |
24 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 24 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
25 #include "webrtc/modules/interface/module_common_types.h" | 25 #include "webrtc/modules/include/module_common_types.h" |
26 | 26 |
27 namespace webrtc { | 27 namespace webrtc { |
28 | 28 |
29 static const AudioProcessing::Error kNoErr = AudioProcessing::kNoError; | 29 static const AudioProcessing::Error kNoErr = AudioProcessing::kNoError; |
30 #define EXPECT_NOERR(expr) EXPECT_EQ(kNoErr, (expr)) | 30 #define EXPECT_NOERR(expr) EXPECT_EQ(kNoErr, (expr)) |
31 | 31 |
32 class RawFile final { | 32 class RawFile final { |
33 public: | 33 public: |
34 explicit RawFile(const std::string& filename); | 34 explicit RawFile(const std::string& filename); |
35 ~RawFile(); | 35 ~RawFile(); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // appropriate error message has been printed to stdout. | 146 // appropriate error message has been printed to stdout. |
147 std::vector<Point> ParseArrayGeometry(const std::string& mic_positions, | 147 std::vector<Point> ParseArrayGeometry(const std::string& mic_positions, |
148 size_t num_mics); | 148 size_t num_mics); |
149 | 149 |
150 // Same as above, but without the num_mics check for when it isn't available. | 150 // Same as above, but without the num_mics check for when it isn't available. |
151 std::vector<Point> ParseArrayGeometry(const std::string& mic_positions); | 151 std::vector<Point> ParseArrayGeometry(const std::string& mic_positions); |
152 | 152 |
153 } // namespace webrtc | 153 } // namespace webrtc |
154 | 154 |
155 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_TEST_UTILS_H_ | 155 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_TEST_UTILS_H_ |
OLD | NEW |