blob: 8f44bf891d5cef443dbdab02ebb26df050b574f7 [file] [log] [blame]
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +00001/*
2 * Copyright (c) 2012 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
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef TEST_MOCK_AUDIO_DECODER_H_
12#define TEST_MOCK_AUDIO_DECODER_H_
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000013
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020014#include "api/audio_codecs/audio_decoder.h"
15#include "test/gmock.h"
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000016
17namespace webrtc {
18
19class MockAudioDecoder : public AudioDecoder {
20 public:
kwiberg2b3aa142017-06-14 03:31:17 -070021 MockAudioDecoder();
22 ~MockAudioDecoder();
Danil Chapovalov54706d62020-05-14 19:50:01 +020023 MOCK_METHOD(void, Die, ());
24 MOCK_METHOD(int,
25 DecodeInternal,
26 (const uint8_t*, size_t, int, int16_t*, SpeechType*),
27 (override));
28 MOCK_METHOD(bool, HasDecodePlc, (), (const, override));
29 MOCK_METHOD(size_t, DecodePlc, (size_t, int16_t*), (override));
30 MOCK_METHOD(void, Reset, (), (override));
31 MOCK_METHOD(int, ErrorCode, (), (override));
32 MOCK_METHOD(int, PacketDuration, (const uint8_t*, size_t), (const, override));
33 MOCK_METHOD(size_t, Channels, (), (const, override));
34 MOCK_METHOD(int, SampleRateHz, (), (const, override));
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000035};
36
37} // namespace webrtc
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020038#endif // TEST_MOCK_AUDIO_DECODER_H_