| Index: media/base/media_posix.cc
|
| diff --git a/media/base/media_posix.cc b/media/base/media_posix.cc
|
| index adad88bdc2e795392fac3f55952f7ceccfb8e8b3..495ffc12970f47aa9016d6ecf51c102ae1b20e63 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_SOURCE_ROOT, &file_path));
|
| + CHECK(InitializeMediaLibrary(file_path));
|
| +}
|
| +
|
| bool IsMediaLibraryInitialized() {
|
| return g_media_library_is_initialized;
|
| }
|
|
|