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

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

Issue 6246036: FilePath: Remove most of ToWStringHack, adding a LossyDisplayName() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bug link Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
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"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 if (base::GetProcessCount(L"crash_service.exe", NULL)) 112 if (base::GetProcessCount(L"crash_service.exe", NULL))
113 return; 113 return;
114 114
115 FilePath exe_dir; 115 FilePath exe_dir;
116 if (!PathService::Get(base::DIR_EXE, &exe_dir)) { 116 if (!PathService::Get(base::DIR_EXE, &exe_dir)) {
117 DCHECK(false); 117 DCHECK(false);
118 return; 118 return;
119 } 119 }
120 120
121 FilePath crash_service = exe_dir.Append(L"crash_service.exe"); 121 FilePath crash_service = exe_dir.Append(L"crash_service.exe");
122 if (!base::LaunchApp(crash_service.ToWStringHack(), false, false, 122 if (!base::LaunchApp(crash_service.value(), false, false,
123 &crash_service_)) { 123 &crash_service_)) {
124 printf("Couldn't start crash_service.exe, so this ui_test run won't tell " \ 124 printf("Couldn't start crash_service.exe, so this ui_test run won't tell " \
125 "you if any test crashes!\n"); 125 "you if any test crashes!\n");
126 return; 126 return;
127 } 127 }
128 128
129 printf("Started crash_service.exe so you know if a test crashes!\n"); 129 printf("Started crash_service.exe so you know if a test crashes!\n");
130 } 130 }
131 #endif 131 #endif
OLDNEW
« no previous file with comments | « chrome/test/mini_installer_test/chrome_mini_installer.cc ('k') | chrome/tools/crash_service/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698