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 "chrome/browser/diagnostics/diagnostics_main.h" | 5 #include "chrome/browser/diagnostics/diagnostics_main.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #if defined(OS_POSIX) | 9 #if defined(OS_POSIX) |
10 #include <stdio.h> | 10 #include <stdio.h> |
11 #include <unistd.h> | 11 #include <unistd.h> |
12 #endif | 12 #endif |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
18 #include "base/i18n/icu_util.h" | 18 #include "base/i18n/icu_util.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
21 #include "base/strings/sys_string_conversions.h" | 21 #include "base/strings/sys_string_conversions.h" |
22 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
23 #include "base/time.h" | 23 #include "base/time.h" |
24 #include "chrome/browser/diagnostics/diagnostics_model.h" | 24 #include "chrome/browser/diagnostics/diagnostics_model.h" |
25 #include "chrome/common/chrome_paths.h" | 25 #include "chrome/common/chrome_paths.h" |
26 #include "ui/base/resource/resource_bundle.h" | 26 #include "ui/base/resource/resource_bundle.h" |
27 #include "ui/base/ui_base_paths.h" | 27 #include "ui/base/ui_base_paths.h" |
28 | 28 |
29 namespace { | 29 namespace { |
30 // This is a minimalistic interface to wrap the platform console. This will be | 30 // This is a minimalistic interface to wrap the platform console. This will be |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 TestController controller(&writer); | 358 TestController controller(&writer); |
359 | 359 |
360 // Run all the diagnostic tests. | 360 // Run all the diagnostic tests. |
361 controller.Run(model); | 361 controller.Run(model); |
362 delete model; | 362 delete model; |
363 | 363 |
364 console->OnQuit(); | 364 console->OnQuit(); |
365 delete console; | 365 delete console; |
366 return 0; | 366 return 0; |
367 } | 367 } |
OLD | NEW |