diff options
Diffstat (limited to 'media/video/mock_objects.h')
-rw-r--r-- | media/video/mock_objects.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/media/video/mock_objects.h b/media/video/mock_objects.h new file mode 100644 index 0000000..a975ea8 --- /dev/null +++ b/media/video/mock_objects.h @@ -0,0 +1,34 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef MEDIA_VIDEO_MOCK_OBJECTS_H_ +#define MEDIA_VIDEO_MOCK_OBJECTS_H_ + +#include "media/video/video_decode_engine.h" +#include "testing/gmock/include/gmock/gmock.h" + +namespace media { + +class MockVideoDecodeEngine : public VideoDecodeEngine { + public: + MockVideoDecodeEngine() {} + virtual ~MockVideoDecodeEngine() {} + + MOCK_METHOD4(Initialize, void(MessageLoop* message_loop, + EventHandler* event_handler, + VideoDecodeContext* context, + const VideoCodecConfig& config)); + MOCK_METHOD0(Uninitialize, void()); + MOCK_METHOD0(Flush, void()); + MOCK_METHOD0(Seek, void()); + MOCK_METHOD1(ConsumeVideoSample, void(scoped_refptr<Buffer> buffer)); + MOCK_METHOD1(ProduceVideoFrame, void(scoped_refptr<VideoFrame> frame)); + + private: + DISALLOW_COPY_AND_ASSIGN(MockVideoDecodeEngine); +}; + +} // namespace media + +#endif // MEDIA_VIDEO_MOCK_OBJECTS_H_ |