summaryrefslogtreecommitdiffstats
path: root/media/base/media.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/base/media.h')
-rw-r--r--media/base/media.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/media/base/media.h b/media/base/media.h
index 6bbad4c..bd25cbb 100644
--- a/media/base/media.h
+++ b/media/base/media.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -25,6 +25,11 @@ namespace media {
// Returns true if everything was successfully initialized, false otherwise.
bool InitializeMediaLibrary(const FilePath& module_dir);
+// Helper function for unit tests to avoid boiler plate code everywhere. This
+// function will crash if it fails to load the media library. This ensures tests
+// fail if the media library is not available.
+void InitializeMediaLibraryForTesting();
+
// 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();