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

Issue 15085011: Add FakeVideoDecoder. (Closed)

Created:
7 years, 7 months ago by xhwang
Modified:
7 years, 6 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Add FakeVideoDecoder. The FakeVideoDecoder simulates a typical video decoder that could have some decoding delays (to simulate out-of-order decoding). Since it's fake, it does not care about what the input is. It always generate output frames successfully but with a frame delay (specified in the ctor). All callbacks passed to FakeVideoDecoder can be held if desired. This gives the test class a chance to do some operation during pending callbacks. BUG=141788 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202789

Patch Set 1 #

Total comments: 14

Patch Set 2 : fix include #

Patch Set 3 : comments addressed #

Patch Set 4 : #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+1060 lines, -31 lines) Patch
A media/base/callback_holder.h View 1 2 1 chunk +88 lines, -0 lines 2 comments Download
A media/base/callback_holder_unittest.cc View 1 2 1 chunk +125 lines, -0 lines 4 comments Download
M media/filters/fake_demuxer_stream.h View 1 2 3 chunks +14 lines, -1 line 0 comments Download
M media/filters/fake_demuxer_stream.cc View 1 2 5 chunks +22 lines, -6 lines 0 comments Download
M media/filters/fake_demuxer_stream_unittest.cc View 1 2 9 chunks +36 lines, -24 lines 2 comments Download
A media/filters/fake_video_decoder.h View 1 2 1 chunk +101 lines, -0 lines 0 comments Download
A media/filters/fake_video_decoder.cc View 1 2 3 1 chunk +235 lines, -0 lines 0 comments Download
A media/filters/fake_video_decoder_unittest.cc View 1 chunk +434 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 4 chunks +5 lines, -0 lines 2 comments Download

Messages

Total messages: 13 (0 generated)
xhwang
This CL is a little crazier than I thought when I need to make the ...
7 years, 7 months ago (2013-05-09 18:46:53 UTC) #1
scherkus (not reviewing)
https://codereview.chromium.org/15085011/diff/1/media/filters/fake_demuxer_stream.h File media/filters/fake_demuxer_stream.h (right): https://codereview.chromium.org/15085011/diff/1/media/filters/fake_demuxer_stream.h#newcode75 media/filters/fake_demuxer_stream.h:75: bool hold_next_read_; can this use your new CallbackHolder? https://codereview.chromium.org/15085011/diff/1/media/filters/fake_video_decoder.cc ...
7 years, 7 months ago (2013-05-09 20:07:09 UTC) #2
xhwang
Comments mostly done. Please take another look! https://codereview.chromium.org/15085011/diff/1/media/filters/fake_demuxer_stream.h File media/filters/fake_demuxer_stream.h (right): https://codereview.chromium.org/15085011/diff/1/media/filters/fake_demuxer_stream.h#newcode75 media/filters/fake_demuxer_stream.h:75: bool hold_next_read_; ...
7 years, 7 months ago (2013-05-22 04:29:42 UTC) #3
scherkus (not reviewing)
lgtm w/ nits https://codereview.chromium.org/15085011/diff/21001/media/base/callback_holder.h File media/base/callback_holder.h (right): https://codereview.chromium.org/15085011/diff/21001/media/base/callback_holder.h#newcode84 media/base/callback_holder.h:84: }; DISALLOW ? https://codereview.chromium.org/15085011/diff/21001/media/base/callback_holder_unittest.cc File media/base/callback_holder_unittest.cc ...
7 years, 6 months ago (2013-05-28 15:56:56 UTC) #4
xhwang
https://codereview.chromium.org/15085011/diff/21001/media/base/callback_holder.h File media/base/callback_holder.h (right): https://codereview.chromium.org/15085011/diff/21001/media/base/callback_holder.h#newcode84 media/base/callback_holder.h:84: }; On 2013/05/28 15:56:57, scherkus wrote: > DISALLOW ? ...
7 years, 6 months ago (2013-05-28 19:34:09 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/15085011/21001
7 years, 6 months ago (2013-05-28 19:34:23 UTC) #6
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=5307
7 years, 6 months ago (2013-05-28 19:58:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/15085011/21001
7 years, 6 months ago (2013-05-28 20:03:23 UTC) #8
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=5316
7 years, 6 months ago (2013-05-28 20:24:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/15085011/21001
7 years, 6 months ago (2013-05-28 21:39:54 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=154749
7 years, 6 months ago (2013-05-28 23:41:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/15085011/21001
7 years, 6 months ago (2013-05-28 23:46:37 UTC) #12
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 06:52:30 UTC) #13
Message was sent while issue was closed.
Change committed as 202789

Powered by Google App Engine
This is Rietveld 408576698