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

Issue 7587012: Remove mock_ffmpeg and update media unittests. (Closed)

Created:
9 years, 4 months ago by acolwell GONE FROM CHROMIUM
Modified:
9 years, 4 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, Paweł Hajdan Jr., acolwell+watch_chromium.org, annacc+watch_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM)
Visibility:
Public.

Description

Remove mock_ffmpeg and update media unittests. BUG=92429 TEST=BitstreamConverterTest.*, ChunkDemuxerTest.*, FFmpegDemuxerTest.*, FFmpegGlueTest.*, FFmpegVideoDecoderTest.*, FFmpegH264BitstreamConverterTest.*, FFmpegVideoDecodeEngineTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96974 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97886

Patch Set 1 #

Total comments: 42

Patch Set 2 : Address CR comments. #

Total comments: 9

Patch Set 3 : Address nits and rebased to remove test data files that were just checked in. #

Patch Set 4 : Changed library loading path to make trybots happy. #

Patch Set 5 : Fix memory leak #

Patch Set 6 : Fix FFmpegVideoDecodeEngineTest to work with multithreaded decoders #

Total comments: 1

Patch Set 7 : Read corrupt frame data from a file. #

Patch Set 8 : Disable DecodeFrame_LargerXXX tests to make Valgrind happy. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+557 lines, -1405 lines) Patch
M media/base/media.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M media/base/media_posix.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M media/base/media_win.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
D media/base/mock_ffmpeg.h View 1 chunk +0 lines, -162 lines 0 comments Download
D media/base/mock_ffmpeg.cc View 1 chunk +0 lines, -224 lines 0 comments Download
M media/base/run_all_unittests.cc View 1 2 1 chunk +7 lines, -2 lines 0 comments Download
A media/base/test_data_util.h View 1 1 chunk +35 lines, -0 lines 0 comments Download
A media/base/test_data_util.cc View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
M media/base/video_decoder_config.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M media/base/video_decoder_config.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M media/ffmpeg/ffmpeg_common.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M media/filters/bitstream_converter.h View 1 2 2 chunks +1 line, -6 lines 0 comments Download
M media/filters/bitstream_converter_unittest.cc View 1 2 3 4 2 chunks +75 lines, -93 lines 0 comments Download
M media/filters/chunk_demuxer_unittest.cc View 1 6 chunks +6 lines, -94 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 1 15 chunks +181 lines, -504 lines 0 comments Download
M media/filters/ffmpeg_glue.h View 1 2 chunks +7 lines, -4 lines 0 comments Download
M media/filters/ffmpeg_glue.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_glue_unittest.cc View 1 7 chunks +18 lines, -18 lines 0 comments Download
M media/filters/ffmpeg_h264_bitstream_converter_unittest.cc View 1 6 chunks +2 lines, -88 lines 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M media/video/ffmpeg_video_decode_engine.h View 1 chunk +0 lines, -2 lines 0 comments Download
M media/video/ffmpeg_video_decode_engine.cc View 1 3 chunks +1 line, -19 lines 0 comments Download
M media/video/ffmpeg_video_decode_engine_unittest.cc View 1 2 3 4 5 6 7 5 chunks +151 lines, -182 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
acolwell GONE FROM CHROMIUM
BOOM!
9 years, 4 months ago (2011-08-10 23:59:04 UTC) #1
scherkus (not reviewing)
initial pass -- actually pretty easy to review! the biggest comment is how to best ...
9 years, 4 months ago (2011-08-11 01:26:29 UTC) #2
acolwell GONE FROM CHROMIUM
http://codereview.chromium.org/7587012/diff/1/media/base/media.h File media/base/media.h (right): http://codereview.chromium.org/7587012/diff/1/media/base/media.h#newcode29 media/base/media.h:29: bool InitializeMediaLibraryForTesting(); On 2011/08/11 01:26:29, scherkus wrote: > It ...
9 years, 4 months ago (2011-08-11 23:54:40 UTC) #3
scherkus (not reviewing)
LGTM w/ nits WOO! http://codereview.chromium.org/7587012/diff/7001/media/base/media.h File media/base/media.h (right): http://codereview.chromium.org/7587012/diff/7001/media/base/media.h#newcode28 media/base/media.h:28: // Helper method for unit ...
9 years, 4 months ago (2011-08-12 21:32:21 UTC) #4
acolwell GONE FROM CHROMIUM
http://codereview.chromium.org/7587012/diff/7001/media/base/media.h File media/base/media.h (right): http://codereview.chromium.org/7587012/diff/7001/media/base/media.h#newcode28 media/base/media.h:28: // Helper method for unit tests to avoid boiler ...
9 years, 4 months ago (2011-08-15 17:00:54 UTC) #5
acolwell GONE FROM CHROMIUM
Uploaded patch that fixes FFmpegVideoDecodeEngineTest so it works with multithreaded decoders.
9 years, 4 months ago (2011-08-22 23:40:41 UTC) #6
scherkus (not reviewing)
9 years, 4 months ago (2011-08-23 14:42:08 UTC) #7
one q about making the corrupted I frame a test file but LGTM

http://codereview.chromium.org/7587012/diff/24001/media/video/ffmpeg_video_de...
File media/video/ffmpeg_video_decode_engine_unittest.cc (right):

http://codereview.chromium.org/7587012/diff/24001/media/video/ffmpeg_video_de...
media/video/ffmpeg_video_decode_engine_unittest.cc:52: // Create a corrupt
version of |i_frame_buffer_|.
couldn't this be a file?

Powered by Google App Engine
This is Rietveld 408576698