Index: media/base/media.h |
diff --git a/media/base/media.h b/media/base/media.h |
index 6bbad4cbbb9ec9caa484c50c240091c41e1de712..1b4123d9069f2242afcf459c72b864f89bd42d1b 100644 |
--- a/media/base/media.h |
+++ b/media/base/media.h |
@@ -25,6 +25,9 @@ namespace media { |
// Returns true if everything was successfully initialized, false otherwise. |
bool InitializeMediaLibrary(const FilePath& module_dir); |
+// Helper method for unit tests to avoid boiler plate code everywhere. |
+bool InitializeMediaLibraryForTesting(); |
scherkus (not reviewing)
2011/08/11 01:26:29
It looks like this gets called in many places.
Wo
acolwell GONE FROM CHROMIUM
2011/08/11 23:54:40
Done.
|
+ |
// Use this if you need to check whether the media library is initialized |
// for the this process, without actually trying to initialize it. |
bool IsMediaLibraryInitialized(); |