OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/process_util.h" | 8 #include "base/process_util.h" |
9 #include "base/sys_info.h" | 9 #include "base/sys_info.h" |
10 #include "chrome/common/env_vars.h" | 10 #include "chrome/common/env_vars.h" |
11 | 11 |
12 // Force a test to use an already running browser instance. UI tests only. | 12 // Force a test to use an already running browser instance. UI tests only. |
13 const wchar_t UITestSuite::kUseExistingBrowser[] = L"use-existing-browser"; | 13 const char UITestSuite::kUseExistingBrowser[] = "use-existing-browser"; |
14 | 14 |
15 // Timeout for the test in milliseconds. UI tests only. | 15 // Timeout for the test in milliseconds. UI tests only. |
16 const wchar_t UITestSuite::kTestTimeout[] = L"test-timeout"; | 16 const char UITestSuite::kTestTimeout[] = "test-timeout"; |
17 | 17 |
18 // Parameters to run test in parallel. UI tests only. | 18 // Parameters to run test in parallel. UI tests only. |
19 const wchar_t UITestSuite::kBatchCount[] = L"batch-count"; | 19 const char UITestSuite::kBatchCount[] = "batch-count"; |
20 const wchar_t UITestSuite::kBatchIndex[] = L"batch-index"; | 20 const char UITestSuite::kBatchIndex[] = "batch-index"; |
21 const char UITestSuite::kGTestTotalShards[] = "GTEST_TOTAL_SHARDS="; | 21 const char UITestSuite::kGTestTotalShards[] = "GTEST_TOTAL_SHARDS="; |
22 const char UITestSuite::kGTestShardIndex[] = "GTEST_SHARD_INDEX="; | 22 const char UITestSuite::kGTestShardIndex[] = "GTEST_SHARD_INDEX="; |
23 | 23 |
24 | 24 |
25 UITestSuite::UITestSuite(int argc, char** argv) | 25 UITestSuite::UITestSuite(int argc, char** argv) |
26 : ChromeTestSuite(argc, argv) { | 26 : ChromeTestSuite(argc, argv) { |
27 #if defined(OS_WIN) | 27 #if defined(OS_WIN) |
28 crash_service_ = NULL; | 28 crash_service_ = NULL; |
29 #endif | 29 #endif |
30 } | 30 } |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 if (!base::LaunchApp(crash_service.ToWStringHack(), false, false, | 134 if (!base::LaunchApp(crash_service.ToWStringHack(), false, false, |
135 &crash_service_)) { | 135 &crash_service_)) { |
136 printf("Couldn't start crash_service.exe, so this ui_test run won't tell " \ | 136 printf("Couldn't start crash_service.exe, so this ui_test run won't tell " \ |
137 "you if any test crashes!\n"); | 137 "you if any test crashes!\n"); |
138 return; | 138 return; |
139 } | 139 } |
140 | 140 |
141 printf("Started crash_service.exe so you know if a test crashes!\n"); | 141 printf("Started crash_service.exe so you know if a test crashes!\n"); |
142 } | 142 } |
143 #endif | 143 #endif |
OLD | NEW |