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" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |