#ifndef MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_
#define MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_
#include "video_decode_accelerator.h"
#include <vector>
#include "base/basictypes.h"
#include "media/base/bitstream_buffer.h"
#include "media/base/video_decoder_config.h"
#include "media/video/picture.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace media {
class MockVideoDecodeAccelerator : public VideoDecodeAccelerator {
public:
MockVideoDecodeAccelerator();
virtual ~MockVideoDecodeAccelerator();
MOCK_METHOD2(Initialize, bool(VideoCodecProfile profile, Client* client));
MOCK_METHOD1(Decode, void(const BitstreamBuffer& bitstream_buffer));
MOCK_METHOD1(AssignPictureBuffers,
void(const std::vector<PictureBuffer>& buffers));
MOCK_METHOD1(ReusePictureBuffer, void(int32 picture_buffer_id));
MOCK_METHOD0(Flush, void());
MOCK_METHOD0(Reset, void());
MOCK_METHOD0(Destroy, void());
private:
void DeleteThis();
DISALLOW_COPY_AND_ASSIGN(MockVideoDecodeAccelerator);
};
}
#endif