diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-05 18:20:36 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-05 18:20:36 +0000 |
commit | d85fe1ef8bb6b25396391508c4996845fcd12921 (patch) | |
tree | 29a6029f02cb1ba81384c12792fd9e402d361c4f /media/base/run_all_unittests.cc | |
parent | 97063c3e2f54db0b01cc612a590eeb7ac478f5a2 (diff) | |
download | chromium_src-d85fe1ef8bb6b25396391508c4996845fcd12921.zip chromium_src-d85fe1ef8bb6b25396391508c4996845fcd12921.tar.gz chromium_src-d85fe1ef8bb6b25396391508c4996845fcd12921.tar.bz2 |
Convert most run_all_unittests.cc files to use new unit test launcher.
Note that the new code is still behind a runtime flag
(--brave-new-test-launcher), but compiling tests with support for it
will make further testing possible.
BUG=236893, 79359
R=akalin@chromium.org, enne@chromium.org, erikwright@chromium.org, joi@chromium.org, keybuk@chromium.org, sky@chromium.org, thestig@chromium.org, tommi@chromium.org, wtc@chromium.org, xhwang@chromium.org, yzshen@chromium.org
Review URL: https://codereview.chromium.org/23442019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221464 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/run_all_unittests.cc')
-rw-r--r-- | media/base/run_all_unittests.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/media/base/run_all_unittests.cc b/media/base/run_all_unittests.cc index f0c3a6b..a9a6423 100644 --- a/media/base/run_all_unittests.cc +++ b/media/base/run_all_unittests.cc @@ -2,8 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "base/bind.h" #include "base/command_line.h" #include "base/test/test_suite.h" +#include "base/test/unit_test_launcher.h" #include "build/build_config.h" #include "media/base/media.h" #include "media/base/media_switches.h" @@ -40,5 +42,9 @@ void TestSuiteNoAtExit::Initialize() { } int main(int argc, char** argv) { - return TestSuiteNoAtExit(argc, argv).Run(); + TestSuiteNoAtExit test_suite(argc, argv); + + return base::LaunchUnitTests( + argc, argv, base::Bind(&TestSuiteNoAtExit::Run, + base::Unretained(&test_suite))); } |