Index: webrtc/modules/audio_processing/utility/lapped_transform_unittest.cc |
diff --git a/webrtc/common_audio/lapped_transform_unittest.cc b/webrtc/modules/audio_processing/utility/lapped_transform_unittest.cc |
similarity index 95% |
rename from webrtc/common_audio/lapped_transform_unittest.cc |
rename to webrtc/modules/audio_processing/utility/lapped_transform_unittest.cc |
index a78488e326d9b0759955bb8a9b3941ecd0057235..9bf8419aa7f3c30218c46ac1b6e3acdd36a00a40 100644 |
--- a/webrtc/common_audio/lapped_transform_unittest.cc |
+++ b/webrtc/modules/audio_processing/utility/lapped_transform_unittest.cc |
@@ -8,7 +8,7 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#include "webrtc/common_audio/lapped_transform.h" |
+#include "webrtc/modules/audio_processing/utility/lapped_transform.h" |
#include <algorithm> |
#include <cmath> |
@@ -36,9 +36,7 @@ class NoopCallback : public webrtc::LappedTransform::Callback { |
++block_num_; |
} |
- size_t block_num() { |
- return block_num_; |
- } |
+ size_t block_num() { return block_num_; } |
private: |
size_t block_num_; |
@@ -69,9 +67,7 @@ class FftCheckerCallback : public webrtc::LappedTransform::Callback { |
} |
} |
- size_t block_num() { |
- return block_num_; |
- } |
+ size_t block_num() { return block_num_; } |
private: |
size_t block_num_; |
@@ -150,8 +146,7 @@ TEST(LappedTransformTest, IdentityProcessor) { |
trans.ProcessChunk(&in_chunk, &out_chunk); |
for (size_t i = 0; i < kChunkLength; ++i) { |
- ASSERT_NEAR(out_chunk[i], |
- (i < kBlockLength - kShiftAmount) ? 0.0f : 2.0f, |
+ ASSERT_NEAR(out_chunk[i], (i < kBlockLength - kShiftAmount) ? 0.0f : 2.0f, |
1e-5f); |
} |
@@ -167,8 +162,8 @@ TEST(LappedTransformTest, Callbacks) { |
float window[kBlockLength]; |
std::fill(window, &window[kBlockLength], 1.0f); |
- LappedTransform trans(1, 1, kChunkLength, window, kBlockLength, |
- kBlockLength, &call); |
+ LappedTransform trans(1, 1, kChunkLength, window, kBlockLength, kBlockLength, |
+ &call); |
float in_buffer[kChunkLength]; |
float* in_chunk = in_buffer; |
float out_buffer[kChunkLength]; |