diff options
author | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-13 09:45:25 +0000 |
---|---|---|
committer | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-13 09:45:25 +0000 |
commit | 57b44c9239e672bbc6cb698b66a7809383222c04 (patch) | |
tree | 04655d8bc7072c4b25360e518708c83f77bc3aae /media/base/test_helpers.h | |
parent | f101378f9d28d49f50b42e8004f2e8385e43c094 (diff) | |
download | chromium_src-57b44c9239e672bbc6cb698b66a7809383222c04.zip chromium_src-57b44c9239e672bbc6cb698b66a7809383222c04.tar.gz chromium_src-57b44c9239e672bbc6cb698b66a7809383222c04.tar.bz2 |
Reland r210741 "Separate DemuxerStream and VideoDecoder."
The original CL r210741 was reverted by r210765 due to a test failure. This CL relands r210741 with the fix.
BUG=141788
Review URL: https://chromiumcodereview.appspot.com/18414008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211559 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/test_helpers.h')
-rw-r--r-- | media/base/test_helpers.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/media/base/test_helpers.h b/media/base/test_helpers.h index a7eb8f5..872d08d 100644 --- a/media/base/test_helpers.h +++ b/media/base/test_helpers.h @@ -21,6 +21,7 @@ class TimeDelta; namespace media { class AudioBuffer; +class DecoderBuffer; // Return a callback that expects to be run once. base::Closure NewExpectedClosure(); @@ -130,6 +131,18 @@ scoped_refptr<AudioBuffer> MakePlanarAudioBuffer( base::TimeDelta start_time, base::TimeDelta duration); +// Create a fake video DecoderBuffer for testing purpose. The buffer contains +// part of video decoder config info embedded so that the testing code can do +// some sanity check. +scoped_refptr<DecoderBuffer> CreateFakeVideoBufferForTest( + const VideoDecoderConfig& config, + base::TimeDelta timestamp, + base::TimeDelta duration); + +// Verify if a fake video DecoderBuffer is valid. +bool VerifyFakeVideoBufferForTest(const scoped_refptr<DecoderBuffer>& buffer, + const VideoDecoderConfig& config); + } // namespace media #endif // MEDIA_BASE_TEST_HELPERS_H_ |