Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Unified Diff: webrtc/modules/audio_processing/utility/lapped_transform_unittest.cc

Issue 1846903004: Moved ring-buffer related files from common_audio to audio_processing (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Corrected order of includes Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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];

Powered by Google App Engine
This is Rietveld 408576698