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

Unified Diff: webkit/renderer/compositor_bindings/test/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: trybots 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
« no previous file with comments | « ui/views/run_all_unittests.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/renderer/compositor_bindings/test/run_all_unittests.cc
diff --git a/webkit/renderer/compositor_bindings/test/run_all_unittests.cc b/webkit/renderer/compositor_bindings/test/run_all_unittests.cc
index 0a37c57189c25a475b9bdec2e8d6ea964ba9731d..94d25fb6ea9e6201bd8c2f8ffa29dc1ddb212a7b 100644
--- a/webkit/renderer/compositor_bindings/test/run_all_unittests.cc
+++ b/webkit/renderer/compositor_bindings/test/run_all_unittests.cc
@@ -2,15 +2,27 @@
// 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/message_loop/message_loop.h"
#include "base/test/test_suite.h"
+#include "base/test/unit_test_launcher.h"
#include "testing/gmock/include/gmock/gmock.h"
+namespace {
+
+int RunTestSuite(TestSuite* test_suite) {
+ base::MessageLoop message_loop;
+ return test_suite->Run();
+}
+
+} // namespace
+
int main(int argc, char** argv) {
::testing::InitGoogleMock(&argc, argv);
+
TestSuite test_suite(argc, argv);
- base::MessageLoop message_loop;
- int result = test_suite.Run();
- return result;
+ return base::LaunchUnitTests(
+ argc, argv, base::Bind(&RunTestSuite,
+ base::Unretained(&test_suite)));
}
« no previous file with comments | « ui/views/run_all_unittests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698