| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/test/ui/ui_test_suite.h" | 5 #include "chrome/test/ui/ui_test_suite.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/environment.h" | 9 #include "base/environment.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
| 12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
| 13 #include "chrome/common/chrome_switches.h" |
| 13 #include "chrome/common/env_vars.h" | 14 #include "chrome/common/env_vars.h" |
| 14 | 15 |
| 15 // Timeout for the test in milliseconds. UI tests only. | 16 // Timeout for the test in milliseconds. UI tests only. |
| 16 const char UITestSuite::kTestTimeout[] = "test-timeout"; | 17 const char UITestSuite::kTestTimeout[] = "test-timeout"; |
| 17 | 18 |
| 18 // Parameters to run test in parallel. UI tests only. | 19 // Parameters to run test in parallel. UI tests only. |
| 19 const char UITestSuite::kBatchCount[] = "batch-count"; | 20 const char UITestSuite::kBatchCount[] = "batch-count"; |
| 20 const char UITestSuite::kBatchIndex[] = "batch-index"; | 21 const char UITestSuite::kBatchIndex[] = "batch-index"; |
| 21 const char UITestSuite::kGTestTotalShards[] = "GTEST_TOTAL_SHARDS="; | 22 const char UITestSuite::kGTestTotalShards[] = "GTEST_TOTAL_SHARDS="; |
| 22 const char UITestSuite::kGTestShardIndex[] = "GTEST_SHARD_INDEX="; | 23 const char UITestSuite::kGTestShardIndex[] = "GTEST_SHARD_INDEX="; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 if (!base::LaunchApp(crash_service.ToWStringHack(), false, false, | 132 if (!base::LaunchApp(crash_service.ToWStringHack(), false, false, |
| 132 &crash_service_)) { | 133 &crash_service_)) { |
| 133 printf("Couldn't start crash_service.exe, so this ui_test run won't tell " \ | 134 printf("Couldn't start crash_service.exe, so this ui_test run won't tell " \ |
| 134 "you if any test crashes!\n"); | 135 "you if any test crashes!\n"); |
| 135 return; | 136 return; |
| 136 } | 137 } |
| 137 | 138 |
| 138 printf("Started crash_service.exe so you know if a test crashes!\n"); | 139 printf("Started crash_service.exe so you know if a test crashes!\n"); |
| 139 } | 140 } |
| 140 #endif | 141 #endif |
| OLD | NEW |