| 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/recon_diagnostics.h" | 5 #include "chrome/browser/diagnostics/recon_diagnostics.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
| 11 #include "base/json/json_string_value_serializer.h" | 11 #include "base/json/json_string_value_serializer.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #include "base/sys_info.h" | 17 #include "base/sys_info.h" |
| 18 #include "chrome/browser/diagnostics/diagnostics_test.h" | 18 #include "chrome/browser/diagnostics/diagnostics_test.h" |
| 19 #include "chrome/common/chrome_constants.h" | 19 #include "chrome/common/chrome_constants.h" |
| 20 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
| 21 #include "chrome/common/chrome_version_info.h" | 21 #include "chrome/common/chrome_version_info.h" |
| 22 #include "components/bookmarks/core/common/bookmark_constants.h" | 22 #include "components/bookmarks/common/bookmark_constants.h" |
| 23 | 23 |
| 24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
| 25 #include "base/win/windows_version.h" | 25 #include "base/win/windows_version.h" |
| 26 #include "chrome/browser/enumerate_modules_model_win.h" | 26 #include "chrome/browser/enumerate_modules_model_win.h" |
| 27 #include "chrome/installer/util/install_util.h" | 27 #include "chrome/installer/util/install_util.h" |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 // Reconnaissance diagnostics. These are the first and most critical | 30 // Reconnaissance diagnostics. These are the first and most critical |
| 31 // diagnostic tests. Here we check for the existence of critical files. | 31 // diagnostic tests. Here we check for the existence of critical files. |
| 32 // TODO(cpu): Define if it makes sense to localize strings. | 32 // TODO(cpu): Define if it makes sense to localize strings. |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 | 432 |
| 433 DiagnosticsTest* MakeResourcesFileTest() { | 433 DiagnosticsTest* MakeResourcesFileTest() { |
| 434 return new PathTest(kPathsToTest[2]); | 434 return new PathTest(kPathsToTest[2]); |
| 435 } | 435 } |
| 436 | 436 |
| 437 DiagnosticsTest* MakeUserDirTest() { return new PathTest(kPathsToTest[3]); } | 437 DiagnosticsTest* MakeUserDirTest() { return new PathTest(kPathsToTest[3]); } |
| 438 | 438 |
| 439 DiagnosticsTest* MakeVersionTest() { return new VersionTest(); } | 439 DiagnosticsTest* MakeVersionTest() { return new VersionTest(); } |
| 440 | 440 |
| 441 } // namespace diagnostics | 441 } // namespace diagnostics |
| OLD | NEW |