Home | History | Annotate | Download | only in test
      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
      3 // found in the LICENSE file.
      4 
      5 #include "base/test/test_switches.h"
      6 
      7 // Time (in milliseconds) that the tests should wait before timing out.
      8 // TODO(phajdan.jr): Clean up the switch names.
      9 const char switches::kTestLargeTimeout[] = "test-large-timeout";
     10 
     11 // Maximum number of tests to run in a single batch.
     12 const char switches::kTestLauncherBatchLimit[] = "test-launcher-batch-limit";
     13 
     14 // Sets defaults desirable for the continuous integration bots, e.g. parallel
     15 // test execution and test retries.
     16 const char switches::kTestLauncherBotMode[] =
     17     "test-launcher-bot-mode";
     18 
     19 // Makes it possible to debug the launcher itself. By default the launcher
     20 // automatically switches to single process mode when it detects presence
     21 // of debugger.
     22 const char switches::kTestLauncherDebugLauncher[] =
     23     "test-launcher-debug-launcher";
     24 
     25 // Number of parallel test launcher jobs.
     26 const char switches::kTestLauncherJobs[] = "test-launcher-jobs";
     27 
     28 // Path to test results file in our custom test launcher format.
     29 const char switches::kTestLauncherOutput[] = "test-launcher-output";
     30 
     31 // Maximum number of times to retry a test after failure.
     32 const char switches::kTestLauncherRetryLimit[] = "test-launcher-retry-limit";
     33 
     34 // Path to test results file with all the info from the test launcher.
     35 const char switches::kTestLauncherSummaryOutput[] =
     36     "test-launcher-summary-output";
     37 
     38 // Flag controlling when test stdio is displayed as part of the launcher's
     39 // standard output.
     40 const char switches::kTestLauncherPrintTestStdio[] =
     41     "test-launcher-print-test-stdio";
     42 
     43 // Index of the test shard to run, starting from 0 (first shard) to total shards
     44 // minus one (last shard).
     45 const char switches::kTestLauncherShardIndex[] =
     46     "test-launcher-shard-index";
     47 
     48 // Total number of shards. Must be the same for all shards.
     49 const char switches::kTestLauncherTotalShards[] =
     50     "test-launcher-total-shards";
     51 
     52 // Time (in milliseconds) that the tests should wait before timing out.
     53 const char switches::kTestLauncherTimeout[] = "test-launcher-timeout";
     54 // TODO(phajdan.jr): Clean up the switch names.
     55 const char switches::kTestTinyTimeout[] = "test-tiny-timeout";
     56 const char switches::kUiTestActionTimeout[] = "ui-test-action-timeout";
     57 const char switches::kUiTestActionMaxTimeout[] = "ui-test-action-max-timeout";
     58