Chromium Code Reviews| 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..f7d7979d77ff807d8770171c76b6db7fb3fac8e2 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(); |
| +} |
| + |
| +} // nemespace |
|
enne (OOO)
2013/09/03 23:21:04
typo
Paweł Hajdan Jr.
2013/09/05 18:20:04
Done.
|
| + |
| 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))); |
| } |