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

Unified Diff: media/base/media_posix.cc

Issue 7587012: Remove mock_ffmpeg and update media unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable DecodeFrame_LargerXXX tests to make Valgrind happy. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/media.h ('k') | media/base/media_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_posix.cc
diff --git a/media/base/media_posix.cc b/media/base/media_posix.cc
index adad88bdc2e795392fac3f55952f7ceccfb8e8b3..7be3255f2af2c30ffd1fc7fbc81c093d17fb80b7 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;
}
« no previous file with comments | « media/base/media.h ('k') | media/base/media_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698