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

Unified Diff: webrtc/modules/audio_processing/vad/vad_audio_proc_unittest.cc

Issue 1181933002: Pull the Voice Activity Detector out from the AGC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove unused files from isolate Created 5 years, 6 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/vad/vad_audio_proc_unittest.cc
diff --git a/webrtc/modules/audio_processing/agc/agc_audio_proc_unittest.cc b/webrtc/modules/audio_processing/vad/vad_audio_proc_unittest.cc
similarity index 88%
rename from webrtc/modules/audio_processing/agc/agc_audio_proc_unittest.cc
rename to webrtc/modules/audio_processing/vad/vad_audio_proc_unittest.cc
index 9534aec2ec3ea0284bdd9786bc920f22a773337f..675af70b4575fbc17508375f37b8ba5e0c79db4c 100644
--- a/webrtc/modules/audio_processing/agc/agc_audio_proc_unittest.cc
+++ b/webrtc/modules/audio_processing/vad/vad_audio_proc_unittest.cc
@@ -12,20 +12,22 @@
// routines. However, interpolation of pitch-gain and lags is in a separate
// class and has its own unit-test.
-#include "webrtc/modules/audio_processing/agc/agc_audio_proc.h"
+#include "webrtc/modules/audio_processing/vad/vad_audio_proc.h"
#include <math.h>
#include <stdio.h>
-#include "gtest/gtest.h"
-#include "webrtc/modules/audio_processing/agc/common.h"
+#include <string>
+
+#include "testing/gtest/include/gtest/gtest.h"
+#include "webrtc/modules/audio_processing/vad/common.h"
#include "webrtc/modules/interface/module_common_types.h"
#include "webrtc/test/testsupport/fileutils.h"
namespace webrtc {
TEST(AudioProcessingTest, DISABLED_ComputingFirstSpectralPeak) {
- AgcAudioProc audioproc;
+ VadAudioProc audioproc;
std::string peak_file_name =
test::ResourcePath("audio_processing/agc/agc_spectral_peak", "dat");
@@ -39,7 +41,7 @@ TEST(AudioProcessingTest, DISABLED_ComputingFirstSpectralPeak) {
// Read 10 ms audio in each iteration.
const size_t kDataLength = kLength10Ms;
- int16_t data[kDataLength] = { 0 };
+ int16_t data[kDataLength] = {0};
AudioFeatures features;
double sp[kMaxNumFrames];
while (fread(data, sizeof(int16_t), kDataLength, pcm_file) == kDataLength) {

Powered by Google App Engine
This is Rietveld 408576698