2015-11-18 22:00:21 +01:00
|
|
|
/*
|
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VCM_CALLBACKS_H_
|
|
|
|
|
#define MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VCM_CALLBACKS_H_
|
2015-11-18 22:00:21 +01:00
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "modules/video_coding/include/video_coding_defines.h"
|
|
|
|
|
#include "test/gmock.h"
|
|
|
|
|
#include "typedefs.h"
|
2015-11-18 22:00:21 +01:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
class MockVCMFrameTypeCallback : public VCMFrameTypeCallback {
|
|
|
|
|
public:
|
|
|
|
|
MOCK_METHOD0(RequestKeyFrame, int32_t());
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class MockPacketRequestCallback : public VCMPacketRequestCallback {
|
|
|
|
|
public:
|
2015-12-21 04:12:39 -08:00
|
|
|
MOCK_METHOD2(ResendPackets,
|
|
|
|
|
int32_t(const uint16_t* sequenceNumbers, uint16_t length));
|
2015-11-18 22:00:21 +01:00
|
|
|
};
|
|
|
|
|
|
2017-03-14 04:16:20 -07:00
|
|
|
class MockVCMReceiveCallback : public VCMReceiveCallback {
|
|
|
|
|
public:
|
|
|
|
|
MockVCMReceiveCallback() {}
|
|
|
|
|
virtual ~MockVCMReceiveCallback() {}
|
|
|
|
|
|
2017-04-11 10:34:31 -07:00
|
|
|
MOCK_METHOD3(FrameToRender,
|
|
|
|
|
int32_t(VideoFrame&, rtc::Optional<uint8_t>, VideoContentType));
|
2017-03-14 04:16:20 -07:00
|
|
|
MOCK_METHOD1(ReceivedDecodedReferenceFrame, int32_t(const uint64_t));
|
|
|
|
|
MOCK_METHOD1(OnIncomingPayloadType, void(int));
|
|
|
|
|
MOCK_METHOD1(OnDecoderImplementationName, void(const char*));
|
|
|
|
|
};
|
|
|
|
|
|
2015-11-18 22:00:21 +01:00
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VCM_CALLBACKS_H_
|