Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: media/base/run_all_unittests.cc

Issue 23442019: Convert most run_all_unittests.cc files to use new unit test launcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/run_all_unittests.cc
diff --git a/media/base/run_all_unittests.cc b/media/base/run_all_unittests.cc
index 28ef5c68f7a6a71937b593770241f47deeabfbcd..71bd087d8bfedad975b1d150ddfa9ff9a81df915 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"
@@ -45,5 +47,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)));
}

Powered by Google App Engine
This is Rietveld 408576698