19a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org/*
29a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
39a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org *
49a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org *  Use of this source code is governed by a BSD-style license
59a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org *  that can be found in the LICENSE file in the root of the source
69a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org *  tree. An additional intellectual property rights grant can be found
79a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org *  in the file PATENTS.  All contributing project authors may
89a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org *  be found in the AUTHORS file in the root of the source tree.
99a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org */
109a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org
11e5abc854f3dc47de16067c2a41476c39b7626722henrik.lundin@webrtc.org#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_MOCK_MOCK_AUDIO_DECODER_H_
12e5abc854f3dc47de16067c2a41476c39b7626722henrik.lundin@webrtc.org#define WEBRTC_MODULES_AUDIO_CODING_NETEQ_MOCK_MOCK_AUDIO_DECODER_H_
139a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org
14e5abc854f3dc47de16067c2a41476c39b7626722henrik.lundin@webrtc.org#include "webrtc/modules/audio_coding/neteq/interface/audio_decoder.h"
159a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org
1649d62206ededc5905d6121d42fdcce8ed665b2c0kjellander@webrtc.org#include "testing/gmock/include/gmock/gmock.h"
179a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org
189a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.orgnamespace webrtc {
199a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org
209a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.orgclass MockAudioDecoder : public AudioDecoder {
219a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org public:
229a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MockAudioDecoder() : AudioDecoder(kDecoderArbitrary) {}
239a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  virtual ~MockAudioDecoder() { Die(); }
249a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_METHOD0(Die, void());
259a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_METHOD4(Decode, int(const uint8_t*, size_t, int16_t*,
269a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org                           AudioDecoder::SpeechType*));
279a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_CONST_METHOD0(HasDecodePlc, bool());
289a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_METHOD2(DecodePlc, int(int, int16_t*));
299a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_METHOD0(Init, int());
309a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_METHOD5(IncomingPacket, int(const uint8_t*, size_t, uint16_t, uint32_t,
319a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org                                   uint32_t));
329a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_METHOD0(ErrorCode, int());
339a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_CONST_METHOD0(codec_type, NetEqDecoder());
349a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_METHOD1(CodecSupported, bool(NetEqDecoder));
359a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org};
369a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org
379a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org}  // namespace webrtc
38e5abc854f3dc47de16067c2a41476c39b7626722henrik.lundin@webrtc.org#endif  // WEBRTC_MODULES_AUDIO_CODING_NETEQ_MOCK_MOCK_AUDIO_DECODER_H_
39