Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: media/filters/video_decoder_impl_unittest.cc

Issue 1226001: Merged VideoSurface, VideoFrame and VideoFrameImpl in VideoFrame. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/video_decoder_impl.cc ('k') | media/filters/video_renderer_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_decoder_impl_unittest.cc
diff --git a/media/filters/video_decoder_impl_unittest.cc b/media/filters/video_decoder_impl_unittest.cc
index a1b1cf066d0ac5ee2e69ed33065bb4507344f040..47429519ce6898018efef69e5f7835f822146699 100644
--- a/media/filters/video_decoder_impl_unittest.cc
+++ b/media/filters/video_decoder_impl_unittest.cc
@@ -53,7 +53,7 @@ class MockVideoDecodeEngine : public VideoDecodeEngine {
bool* got_result, Task* done_cb));
MOCK_METHOD1(Flush, void(Task* done_cb));
MOCK_CONST_METHOD0(state, State());
- MOCK_CONST_METHOD0(GetSurfaceFormat, VideoSurface::Format());
+ MOCK_CONST_METHOD0(GetSurfaceFormat, VideoFrame::Format());
};
// Class that just mocks the private functions.
@@ -63,11 +63,11 @@ class DecoderPrivateMock : public VideoDecoderImpl {
: VideoDecoderImpl(engine) {
}
- MOCK_METHOD3(EnqueueVideoFrame, bool(VideoSurface::Format surface_format,
+ MOCK_METHOD3(EnqueueVideoFrame, bool(VideoFrame::Format surface_format,
const TimeTuple& time,
const AVFrame* frame));
MOCK_METHOD0(EnqueueEmptyFrame, void());
- MOCK_METHOD3(CopyPlane, void(size_t plane, const VideoSurface& surface,
+ MOCK_METHOD3(CopyPlane, void(size_t plane, const VideoFrame* video_frame,
const AVFrame* frame));
MOCK_METHOD4(FindPtsAndDuration, TimeTuple(const AVRational& time_base,
const PtsHeap& pts_heap,
@@ -341,7 +341,7 @@ TEST_F(VideoDecoderImplTest, DoDecode_TestStateTransition) {
WithArg<3>(InvokeRunnable())));
EXPECT_CALL(*mock_engine, GetSurfaceFormat())
.Times(3)
- .WillRepeatedly(Return(VideoSurface::YV16));
+ .WillRepeatedly(Return(VideoFrame::YV16));
EXPECT_CALL(*mock_decoder, FindPtsAndDuration(_, _, _, _))
.WillOnce(Return(kTestPts1))
.WillOnce(Return(kTestPts2))
@@ -427,7 +427,7 @@ TEST_F(VideoDecoderImplTest, DoDecode_EnqueueVideoFrameError) {
SetArgumentPointee<2>(true),
WithArg<3>(InvokeRunnable())));
EXPECT_CALL(*mock_engine, GetSurfaceFormat())
- .WillOnce(Return(VideoSurface::YV16));
+ .WillOnce(Return(VideoFrame::YV16));
EXPECT_CALL(*mock_decoder, FindPtsAndDuration(_, _, _, _))
.WillOnce(Return(kTestPts1));
EXPECT_CALL(*mock_decoder, EnqueueVideoFrame(_, _, _))
« no previous file with comments | « media/filters/video_decoder_impl.cc ('k') | media/filters/video_renderer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698