Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: cc/test/run_all_perftests.cc

Issue 128593002: GTTF: Run perf tests serially (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2014 Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/test/run_all_perftests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)));
}
« no previous file with comments | « no previous file | content/test/run_all_perftests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698