| Index: cc/test/run_all_unittests.cc
|
| diff --git a/cc/test/run_all_unittests.cc b/cc/test/run_all_unittests.cc
|
| index 0ac740ea70618cfa0b486eba1658baf6385e6c62..f4b42a0a984a016b132a24da6f9ffe7254dbca25 100644
|
| --- a/cc/test/run_all_unittests.cc
|
| +++ b/cc/test/run_all_unittests.cc
|
| @@ -2,15 +2,18 @@
|
| // 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 "cc/test/cc_test_suite.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
|
|
| int main(int argc, char** argv) {
|
| ::testing::InitGoogleMock(&argc, argv);
|
| cc::CCTestSuite test_suite(argc, argv);
|
| - int result = test_suite.Run();
|
|
|
| - return result;
|
| + return base::LaunchUnitTests(
|
| + argc, argv, base::Bind(&cc::CCTestSuite::Run,
|
| + base::Unretained(&test_suite)));
|
| }
|
|
|