blob: 11201f507f2fc9fa5a5b84e6c6abacbf5d690c33 [file] [log] [blame]
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
#include <vector>
#include "testing/gmock/include/gmock/gmock.h"
#include "webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.h"
namespace webrtc {
class MockNonlinearBeamformer : public NonlinearBeamformer {
MockNonlinearBeamformer(const std::vector<Point>& array_geometry,
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));
MOCK_METHOD0(is_target_present, bool());
} // namespace webrtc