OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/test/test_switches.h" | 5 #include "base/test/test_switches.h" |
6 | 6 |
7 // Time (in milliseconds) that the tests should wait before timing out. | 7 // Time (in milliseconds) that the tests should wait before timing out. |
8 // TODO(phajdan.jr): Clean up the switch names. | 8 // TODO(phajdan.jr): Clean up the switch names. |
9 const char switches::kTestLargeTimeout[] = "test-large-timeout"; | 9 const char switches::kTestLargeTimeout[] = "test-large-timeout"; |
10 | 10 |
11 // Maximum number of tests to run in a single batch. | 11 // Maximum number of tests to run in a single batch. |
12 const char switches::kTestLauncherBatchLimit[] = "test-launcher-batch-limit"; | 12 const char switches::kTestLauncherBatchLimit[] = "test-launcher-batch-limit"; |
13 | 13 |
14 // Number of parallel test launcher jobs. | 14 // Number of parallel test launcher jobs. |
15 const char switches::kTestLauncherJobs[] = "test-launcher-jobs"; | 15 const char switches::kTestLauncherJobs[] = "test-launcher-jobs"; |
16 | 16 |
17 // Path to test results file in our custom test launcher format. | 17 // Path to test results file in our custom test launcher format. |
18 const char switches::kTestLauncherOutput[] = "test-launcher-output"; | 18 const char switches::kTestLauncherOutput[] = "test-launcher-output"; |
19 | 19 |
20 // Path to test results file with all the info from the test launcher. | 20 // Path to test results file with all the info from the test launcher. |
21 const char switches::kTestLauncherSummaryOutput[] = | 21 const char switches::kTestLauncherSummaryOutput[] = |
22 "test-launcher-summary-output"; | 22 "test-launcher-summary-output"; |
23 | 23 |
24 // Flag controlling when test stdio is displayed as part of the launcher's | 24 // Flag controlling when test stdio is displayed as part of the launcher's |
25 // standard output. | 25 // standard output. |
26 const char switches::kTestLauncherPrintTestStdio[] = | 26 const char switches::kTestLauncherPrintTestStdio[] = |
27 "test-launcher-print-test-stdio"; | 27 "test-launcher-print-test-stdio"; |
28 | 28 |
| 29 // Index of the test shard to run, starting from 0 (first shard) to total shards |
| 30 // minus one (last shard). |
| 31 const char switches::kTestLauncherShardIndex[] = |
| 32 "test-launcher-shard-index"; |
| 33 |
| 34 // Total number of shards. Must be the same for all shards. |
| 35 const char switches::kTestLauncherTotalShards[] = |
| 36 "test-launcher-total-shards"; |
| 37 |
29 // Time (in milliseconds) that the tests should wait before timing out. | 38 // Time (in milliseconds) that the tests should wait before timing out. |
30 const char switches::kTestLauncherTimeout[] = "test-launcher-timeout"; | 39 const char switches::kTestLauncherTimeout[] = "test-launcher-timeout"; |
31 // TODO(phajdan.jr): Clean up the switch names. | 40 // TODO(phajdan.jr): Clean up the switch names. |
32 const char switches::kTestTinyTimeout[] = "test-tiny-timeout"; | 41 const char switches::kTestTinyTimeout[] = "test-tiny-timeout"; |
33 const char switches::kUiTestActionTimeout[] = "ui-test-action-timeout"; | 42 const char switches::kUiTestActionTimeout[] = "ui-test-action-timeout"; |
34 const char switches::kUiTestActionMaxTimeout[] = "ui-test-action-max-timeout"; | 43 const char switches::kUiTestActionMaxTimeout[] = "ui-test-action-max-timeout"; |
OLD | NEW |