blob: f7f0465713e288d9f7655c32ae06e83631048e86 [file] [log] [blame]
* Copyright (c) 2012 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 "modules/audio_coding/neteq/delay_peak_detector.h"
#include "test/gmock.h"
namespace webrtc {
class MockDelayPeakDetector : public DelayPeakDetector {
MockDelayPeakDetector(const TickTimer* tick_timer,
bool ignore_reordered_packets)
: DelayPeakDetector(tick_timer, ignore_reordered_packets) {}
virtual ~MockDelayPeakDetector() { Die(); }
MOCK_METHOD0(Die, void());
MOCK_METHOD0(Reset, void());
MOCK_METHOD1(SetPacketAudioLength, void(int length_ms));
MOCK_METHOD0(peak_found, bool());
MOCK_CONST_METHOD0(MaxPeakHeight, int());
MOCK_CONST_METHOD0(MaxPeakPeriod, uint64_t());
bool(int inter_arrival_time, bool reordered, int target_level));
} // namespace webrtc