Chromium Code Reviews

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

Issue 2121553002: Adding back removed methods to MockNonlinearBeamformer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e0a1c6fa71f3d8288119249c69f515c6a4977ed3..11201f507f2fc9fa5a5b84e6c6abacbf5d690c33 100644
--- a/webrtc/modules/audio_processing/beamformer/mock_nonlinear_beamformer.h
+++ b/webrtc/modules/audio_processing/beamformer/mock_nonlinear_beamformer.h
@@ -24,7 +24,13 @@ class MockNonlinearBeamformer : public NonlinearBeamformer {
size_t num_postfilter_channels)
: NonlinearBeamformer(array_geometry, num_postfilter_channels) {}
+ MockNonlinearBeamformer(const std::vector<Point>& array_geometry)
+ : NonlinearBeamformer(array_geometry, 1u) {}
+
MOCK_METHOD2(Initialize, void(int chunk_size_ms, int sample_rate_hz));
+ // TODO(aluebs): Remove once the dependencies have moved to new API.
+ MOCK_METHOD2(ProcessChunk, void(const ChannelBuffer<float>& data,
+ 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));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine