summaryrefslogtreecommitdiffstats
path: root/media/base/test_data_util.cc
Commit message (Collapse)AuthorAgeFilesLines
* TBR: dmichaeltyoverby@chromium.org2013-07-181-7/+6
| | | | | | | | | | | | | | | Refactored DecoderBuffer to use unix_hacker_style naming. DecoderBuffer went from having pure virtual methods to having concrete implementations. However, the style of the method name remained in UpperCamelCase. This patch renames the methods to fit with the unix_hacker_style that is used for concrete implementations. BUG=251986 Review URL: https://chromiumcodereview.appspot.com/17408005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212375 0039d316-1c4b-4281-b951-d872f2087c98
* Replace FilePath with base::FilePath.brettw@chromium.org2013-02-171-1/+1
| | | | | | | | This is im preparation for removing the 'using" in file_path.h Review URL: https://codereview.chromium.org/12286020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183021 0039d316-1c4b-4281-b951-d872f2087c98
* Replace FilePath with base::FilePath in some more top level directories.brettw@chromium.org2013-02-101-2/+2
| | | | | | Review URL: https://codereview.chromium.org/12217101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181640 0039d316-1c4b-4281-b951-d872f2087c98
* Reimplement FileDataSource using file_util::MemoryMappedFile and convert to ↵scherkus@chromium.org2012-11-141-2/+2
| | | | | | | | using FilePath. This time without breaking the build! git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167691 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 167638 - Reimplement FileDataSource using file_util::MemoryMappedFile ↵jochen@chromium.org2012-11-141-2/+2
| | | | | | | | | | | and convert to using FilePath. Review URL: https://chromiumcodereview.appspot.com/11360229 TBR=scherkus@chromium.org Review URL: https://codereview.chromium.org/11361258 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167644 0039d316-1c4b-4281-b951-d872f2087c98
* Reimplement FileDataSource using file_util::MemoryMappedFile and convert to ↵scherkus@chromium.org2012-11-141-2/+2
| | | | | | | | using FilePath. Review URL: https://chromiumcodereview.appspot.com/11360229 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167638 0039d316-1c4b-4281-b951-d872f2087c98
* Introducing DecoderBuffer and general Buffer cleanup.dalecurtis@google.com2012-05-311-30/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FFmpeg expects data to be padded and aligned in a certain way. It's currently possible to do this incorrectly and introduce dangerous issues. I enforce padding and alignment by introducing a new Buffer called DecoderBuffer and forcing DemuxerStream::Read to only accept it for transfer into decoders. DecoderBuffer allocates all memory through av_malloc (which takes care of alignment) with the appropriate padding size (except for Android, which doesn't care about this). Along the way it was necessary to clean up a large smattering of code to replace usage of DataBuffer with DecoderBuffer. I've rolled in several cleanup actions as well: - Moved DecryptConfig from Buffer to DecoderBuffer. - Replaced AVPacketBuffer and av_dup_packet with a DecoderBuffer::CopyFrom. - Fixed a resultant issue with FFmpegBitStreamConverter after removing the av_dup_packet functionality. Removed some unsupported bitstream filters. - Reduce TestDataUtil::ReadTestDataFile() to a single method returning a DecoderBuffer so unit tests will always have safe buffers. - Replace new DataBuffer(0)/new DecoderBuffer(0) w/ DecoderBuffer::CreateEOSBuffer. - Remove extraneous IsEndOfStream check from FFmpegAudioDecoder. BUG=129843 TEST=media_unittests + valgrind, layout tests. Review URL: https://chromiumcodereview.appspot.com/10447035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139857 0039d316-1c4b-4281-b951-d872f2087c98
* Add AES decryptor and tests.xhwang@chromium.org2012-03-081-1/+11
| | | | | | | | | | | For now we support decryption in video only. The first encryption key ID in ContentEncodings element will be used as the decryption key ID. Also we assume decryption key is the same as key ID. BUG=117060 TEST=test page with encrypted content plays; added media_unittest Review URL: http://codereview.chromium.org/9298021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125560 0039d316-1c4b-4281-b951-d872f2087c98
* Clear buffer prior to distribution to prevent valgrind errors.dalecurtis@chromium.org2012-02-081-1/+3
| | | | | | | | | | BUG=none TEST=Ran media_unittests under valgrind. Review URL: http://codereview.chromium.org/9350010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120875 0039d316-1c4b-4281-b951-d872f2087c98
* Creating integration tests for media pipeline that use real decoders and ↵acolwell@chromium.org2012-01-101-0/+11
| | | | | | | | | | | demuxers. TEST=PipelineIntegrationTest Review URL: http://codereview.chromium.org/8968035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117099 0039d316-1c4b-4281-b951-d872f2087c98
* Take advantage of the new Pass() machinery on scoped_ptr{,_malloc}.fischman@chromium.org2012-01-101-2/+2
| | | | | | | | | | | | | | | | | | | | | Pass() was announced in https://groups.google.com/a/chromium.org/d/topic/chromium-dev/RTd7rNxHjqk/discussion This CL replaces comments about ownership transfer (in all files whose paths contain media/) with the explicit passing of the appropriate scoper. The exceptions that are not touched by this CL: - scoped_refptr<> doesn't support Pass() and so is untouched. - media/audio code defines its own callback machinery, mimicking the old-style callbacks (pass by pointer, explicit deletes). I think that whole pile needs to be replaced with new-style (Bind) callbacks, so left it alone for now. BUG=none TEST=trybots Review URL: http://codereview.chromium.org/9015015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117009 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 116889 - Creating integration tests for media pipeline that use real ↵acolwell@chromium.org2012-01-091-12/+1
| | | | | | | | | | | | | | | | | | | decoders and demuxers. Reverting because Windows TSAN is failing. TEST=PipelineIntegrationTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116349 Review URL: http://codereview.chromium.org/8968035 TBR=acolwell@chromium.org Review URL: http://codereview.chromium.org/9146009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116899 0039d316-1c4b-4281-b951-d872f2087c98
* Creating integration tests for media pipeline that use real decoders and ↵acolwell@chromium.org2012-01-091-1/+12
| | | | | | | | | | | | | demuxers. TEST=PipelineIntegrationTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116349 Review URL: http://codereview.chromium.org/8968035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116889 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 116349 - Creating integration tests for media pipeline that use real ↵acolwell@chromium.org2012-01-041-12/+1
| | | | | | | | | | | | | | | | | decoders and demuxers. Reverting so I can fix TSAN errors. TEST=PipelineIntegrationTest Review URL: http://codereview.chromium.org/8968035 TBR=acolwell@chromium.org Review URL: http://codereview.chromium.org/9094002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116375 0039d316-1c4b-4281-b951-d872f2087c98
* Creating integration tests for media pipeline that use real decoders and ↵acolwell@chromium.org2012-01-041-1/+12
| | | | | | | | | | | demuxers. TEST=PipelineIntegrationTest Review URL: http://codereview.chromium.org/8968035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116349 0039d316-1c4b-4281-b951-d872f2087c98
* Write tests for FFmpegAudioDecoder so I can rewrite the class sans regressions.scherkus@chromium.org2011-09-161-1/+5
| | | | | | | | | TEST=media_unittests BUG=96773 Review URL: http://codereview.chromium.org/7891050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101429 0039d316-1c4b-4281-b951-d872f2087c98
* Remove mock_ffmpeg and update media unittests.acolwell@chromium.org2011-08-231-0/+44
| | | | | | | | | | | BUG=92429 TEST=BitstreamConverterTest.*, ChunkDemuxerTest.*, FFmpegDemuxerTest.*, FFmpegGlueTest.*, FFmpegVideoDecoderTest.*, FFmpegH264BitstreamConverterTest.*, FFmpegVideoDecodeEngineTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96974 Review URL: http://codereview.chromium.org/7587012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97886 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 96974 - Remove mock_ffmpeg and update media unittests.rvargas@google.com2011-08-161-44/+0
| | | | | | | | | | | | BUG=92429 TEST=BitstreamConverterTest.*, ChunkDemuxerTest.*, FFmpegDemuxerTest.*, FFmpegGlueTest.*, FFmpegVideoDecoderTest.*, FFmpegH264BitstreamConverterTest.*, FFmpegVideoDecodeEngineTest.* Review URL: http://codereview.chromium.org/7587012 TBR=acolwell@chromium.org Review URL: http://codereview.chromium.org/7658017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96977 0039d316-1c4b-4281-b951-d872f2087c98
* Remove mock_ffmpeg and update media unittests.acolwell@chromium.org2011-08-161-0/+44
BUG=92429 TEST=BitstreamConverterTest.*, ChunkDemuxerTest.*, FFmpegDemuxerTest.*, FFmpegGlueTest.*, FFmpegVideoDecoderTest.*, FFmpegH264BitstreamConverterTest.*, FFmpegVideoDecodeEngineTest.* Review URL: http://codereview.chromium.org/7587012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96974 0039d316-1c4b-4281-b951-d872f2087c98