Index: media/base/run_all_perftests.cc |
diff --git a/media/base/run_all_unittests.cc b/media/base/run_all_perftests.cc |
similarity index 86% |
copy from media/base/run_all_unittests.cc |
copy to media/base/run_all_perftests.cc |
index f1a0092814c999f3866cc241cb576e7f53125995..119bef330388dc137e0ddcb3f9e7a7b76d05ed34 100644 |
--- a/media/base/run_all_unittests.cc |
+++ b/media/base/run_all_perftests.cc |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -46,7 +46,10 @@ void TestSuiteNoAtExit::Initialize() { |
int main(int argc, char** argv) { |
TestSuiteNoAtExit test_suite(argc, argv); |
- return base::LaunchUnitTests( |
+ // Always run the perf tests serially, to avoid distorting |
+ // perf measurements with randomness resulting from running |
+ // in parallel. |
+ return base::LaunchUnitTestsSerially( |
argc, argv, base::Bind(&TestSuiteNoAtExit::Run, |
base::Unretained(&test_suite))); |
} |