Index: cc/test/run_all_perftests.cc |
diff --git a/cc/test/run_all_perftests.cc b/cc/test/run_all_perftests.cc |
index bef84a9e41ab5de42adf9b65a47d051d403fc3b7..e2dfbcf268254bd78c36d10751996c42deecc438 100644 |
--- a/cc/test/run_all_perftests.cc |
+++ b/cc/test/run_all_perftests.cc |
@@ -2,6 +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/message_loop/message_loop.h" |
+#include "base/test/launcher/unit_test_launcher.h" |
+#include "base/test/test_suite.h" |
#include "cc/test/cc_test_suite.h" |
int main(int argc, char** argv) { |
@@ -10,5 +14,7 @@ int main(int argc, char** argv) { |
// Always run the perf tests serially, to avoid distorting |
// perf measurements with randomness resulting from running |
// in parallel. |
- return test_suite.Run(); |
+ return base::LaunchUnitTestsSerially( |
+ argc, argv, base::Bind(&cc::CCTestSuite::Run, |
+ base::Unretained(&test_suite))); |
} |