Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: chrome/test/ui/ui_test_suite.cc

Issue 270062: Use ASCII strings for switch names. (Closed)
Patch Set: victory Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/ui/ui_test_suite.h ('k') | chrome/test/ui/v8_benchmark_uitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/test/ui/ui_test_suite.h ('k') | chrome/test/ui/v8_benchmark_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698