echo_control_mock.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef MODULES_AUDIO_PROCESSING_TEST_ECHO_CONTROL_MOCK_H_
  11. #define MODULES_AUDIO_PROCESSING_TEST_ECHO_CONTROL_MOCK_H_
  12. #include "api/audio/echo_control.h"
  13. #include "test/gmock.h"
  14. namespace webrtc {
  15. class AudioBuffer;
  16. class MockEchoControl : public EchoControl {
  17. public:
  18. MOCK_METHOD(void, AnalyzeRender, (AudioBuffer * render), (override));
  19. MOCK_METHOD(void, AnalyzeCapture, (AudioBuffer * capture), (override));
  20. MOCK_METHOD(void,
  21. ProcessCapture,
  22. (AudioBuffer * capture, bool echo_path_change),
  23. (override));
  24. MOCK_METHOD(void,
  25. ProcessCapture,
  26. (AudioBuffer * capture,
  27. AudioBuffer* linear_output,
  28. bool echo_path_change),
  29. (override));
  30. MOCK_METHOD(EchoControl::Metrics, GetMetrics, (), (const, override));
  31. MOCK_METHOD(void, SetAudioBufferDelay, (int delay_ms), (override));
  32. MOCK_METHOD(bool, ActiveProcessing, (), (const, override));
  33. };
  34. } // namespace webrtc
  35. #endif // MODULES_AUDIO_PROCESSING_TEST_ECHO_CONTROL_MOCK_H_