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..00eb264013a696e77a906c6fb96aba7611b22045 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 2013 The Chromium Authors. All rights reserved. |
jamesr
2014/01/08 18:42:21
do you need to change this? if so, why change it t
Paweł Hajdan Jr.
2014/01/14 21:37:53
git detects this as a copy. Changed to 2014.
|
// 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))); |
} |