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

Unified Diff: webrtc/modules/audio_processing/beamformer/mock_nonlinear_beamformer.h

Issue 2110593003: Pull out the PostFilter to its own NonlinearBeamformer API (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebasing Created 4 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/beamformer/mock_nonlinear_beamformer.h
diff --git a/webrtc/modules/audio_processing/beamformer/mock_nonlinear_beamformer.h b/webrtc/modules/audio_processing/beamformer/mock_nonlinear_beamformer.h
index e2b4417c13ae7f05680dc1f66dff2746cc81fb6d..e0a1c6fa71f3d8288119249c69f515c6a4977ed3 100644
--- a/webrtc/modules/audio_processing/beamformer/mock_nonlinear_beamformer.h
+++ b/webrtc/modules/audio_processing/beamformer/mock_nonlinear_beamformer.h
@@ -20,12 +20,13 @@ namespace webrtc {
class MockNonlinearBeamformer : public NonlinearBeamformer {
public:
- explicit MockNonlinearBeamformer(const std::vector<Point>& array_geometry)
- : NonlinearBeamformer(array_geometry) {}
+ MockNonlinearBeamformer(const std::vector<Point>& array_geometry,
+ size_t num_postfilter_channels)
+ : NonlinearBeamformer(array_geometry, num_postfilter_channels) {}
MOCK_METHOD2(Initialize, void(int chunk_size_ms, int sample_rate_hz));
- MOCK_METHOD2(ProcessChunk, void(const ChannelBuffer<float>& input,
- ChannelBuffer<float>* output));
+ MOCK_METHOD1(AnalyzeChunk, void(const ChannelBuffer<float>& data));
+ MOCK_METHOD1(PostFilter, void(ChannelBuffer<float>* data));
MOCK_METHOD1(IsInBeam, bool(const SphericalPointf& spherical_point));
MOCK_METHOD0(is_target_present, bool());
};

Powered by Google App Engine
This is Rietveld 408576698