OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stdio.h> | 5 #include <stdio.h> |
6 #if defined(OS_POSIX) | 6 #if defined(OS_POSIX) |
7 #include <unistd.h> | 7 #include <unistd.h> |
8 #elif defined(OS_WIN) | 8 #elif defined(OS_WIN) |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif | 10 #endif |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 #endif | 167 #endif |
168 snprintf(string_rep, sizeof string_rep, "%ld", nprocessors); | 168 snprintf(string_rep, sizeof string_rep, "%ld", nprocessors); |
169 return string_rep; | 169 return string_rep; |
170 } | 170 } |
171 #elif defined(OS_WIN) | 171 #elif defined(OS_WIN) |
172 base::FilePath::StringType NumberOfCoresAsFilePathString() { | 172 base::FilePath::StringType NumberOfCoresAsFilePathString() { |
173 wchar_t string_rep[23]; | 173 wchar_t string_rep[23]; |
174 SYSTEM_INFO system_info; | 174 SYSTEM_INFO system_info; |
175 GetSystemInfo(&system_info); | 175 GetSystemInfo(&system_info); |
176 #if TELEMETRY | 176 #if TELEMETRY |
177 fprintf(stderr, "browser says nprocessors = %d\n", | 177 fprintf(stderr, "browser says nprocessors = %lu\n", |
178 system_info.dwNumberOfProcessors); | 178 system_info.dwNumberOfProcessors); |
179 fflush(NULL); | 179 fflush(NULL); |
180 #endif | 180 #endif |
181 _snwprintf_s(string_rep, sizeof string_rep / sizeof string_rep[0], _TRUNCATE, | 181 _snwprintf_s(string_rep, sizeof string_rep / sizeof string_rep[0], _TRUNCATE, |
182 L"%u", system_info.dwNumberOfProcessors); | 182 L"%u", system_info.dwNumberOfProcessors); |
183 return string_rep; | 183 return string_rep; |
184 } | 184 } |
185 #endif | 185 #endif |
186 | 186 |
187 #if TELEMETRY | 187 #if TELEMETRY |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 } | 440 } |
441 | 441 |
442 // TODO(ncbray) support glibc and PNaCl | 442 // TODO(ncbray) support glibc and PNaCl |
443 // flaky: crbug.com/375894 | 443 // flaky: crbug.com/375894 |
444 IN_PROC_BROWSER_TEST_F(NaClBrowserTestNewlibExtension, DISABLED_MimeHandler) { | 444 IN_PROC_BROWSER_TEST_F(NaClBrowserTestNewlibExtension, DISABLED_MimeHandler) { |
445 RunNaClIntegrationTest(FILE_PATH_LITERAL( | 445 RunNaClIntegrationTest(FILE_PATH_LITERAL( |
446 "ppapi_extension_mime_handler.html")); | 446 "ppapi_extension_mime_handler.html")); |
447 } | 447 } |
448 | 448 |
449 } // namespace | 449 } // namespace |
OLD | NEW |