From 6b6ee027ab8952c404b42842ce797b459859145e Mon Sep 17 00:00:00 2001 From: "hclam@chromium.org" Date: Fri, 5 Mar 2010 00:27:29 +0000 Subject: omx_unittests to load OpenMAX library dynamically Now OpenMAX library has to be loaded dynamically. Review URL: http://codereview.chromium.org/667010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40693 0039d316-1c4b-4281-b951-d872f2087c98 --- media/media.gyp | 1 + media/omx/run_all_unittests.cc | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'media') diff --git a/media/media.gyp b/media/media.gyp index 88e29c9..2d20b70 100644 --- a/media/media.gyp +++ b/media/media.gyp @@ -285,6 +285,7 @@ 'target_name': 'omx_unittests', 'type': 'executable', 'dependencies': [ + 'media', 'omx_wrapper', '../base/base.gyp:base', '../base/base.gyp:base_i18n', diff --git a/media/omx/run_all_unittests.cc b/media/omx/run_all_unittests.cc index 841b353..dbc6ea8 100644 --- a/media/omx/run_all_unittests.cc +++ b/media/omx/run_all_unittests.cc @@ -1,9 +1,15 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. #include "base/test/test_suite.h" +#include "media/base/media.h" int main(int argc, char** argv) { + // Load the OpenMAX library. + if (!media::InitializeOpenMaxLibrary(FilePath())) { + LOG(ERROR) << "Unable to initialize OpenMAX library."; + return -1; + } return TestSuite(argc, argv).Run(); } -- cgit v1.1