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))); |
} |