From c25c7be488ea694d9173374b985e73a5a6eed867 Mon Sep 17 00:00:00 2001 From: "acolwell@chromium.org" Date: Tue, 23 Aug 2011 17:53:58 +0000 Subject: 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 Review URL: http://codereview.chromium.org/7587012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97886 0039d316-1c4b-4281-b951-d872f2087c98 --- media/base/media_posix.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'media/base/media_posix.cc') diff --git a/media/base/media_posix.cc b/media/base/media_posix.cc index adad88b..7be3255 100644 --- a/media/base/media_posix.cc +++ b/media/base/media_posix.cc @@ -92,6 +92,12 @@ bool InitializeMediaLibrary(const FilePath& module_dir) { return g_media_library_is_initialized; } +void InitializeMediaLibraryForTesting() { + FilePath file_path; + CHECK(PathService::Get(base::DIR_EXE, &file_path)); + CHECK(InitializeMediaLibrary(file_path)); +} + bool IsMediaLibraryInitialized() { return g_media_library_is_initialized; } -- cgit v1.1