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_DTMF_BUFFER_H_
12e5abc854f3dc47de16067c2a41476c39b7626722henrik.lundin@webrtc.org#define WEBRTC_MODULES_AUDIO_CODING_NETEQ_MOCK_MOCK_DTMF_BUFFER_H_
139a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org
14e5abc854f3dc47de16067c2a41476c39b7626722henrik.lundin@webrtc.org#include "webrtc/modules/audio_coding/neteq/dtmf_buffer.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 MockDtmfBuffer : public DtmfBuffer {
219a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org public:
229a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MockDtmfBuffer(int fs) : DtmfBuffer(fs) {}
239a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  virtual ~MockDtmfBuffer() { Die(); }
249a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_METHOD0(Die, void());
259a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_METHOD0(Flush,
269a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org      void());
279a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_METHOD1(InsertEvent,
289a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org      int(const DtmfEvent& event));
299a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_METHOD2(GetEvent,
309a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org      bool(uint32_t current_timestamp, DtmfEvent* event));
319a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_CONST_METHOD0(Length,
329a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org      size_t());
339a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org  MOCK_CONST_METHOD0(Empty,
349a400812ca0006d12e538d465ab6728a8ecd07aahenrik.lundin@webrtc.org      bool());
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_DTMF_BUFFER_H_
39