diff options
Diffstat (limited to 'cc/test/run_all_perftests.cc')
-rw-r--r-- | cc/test/run_all_perftests.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cc/test/run_all_perftests.cc b/cc/test/run_all_perftests.cc index bef84a9..e2dfbcf 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))); } |