| OLD | NEW |
| 1 // Copyright (c) 2011 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_value_serializer.h" | 11 #include "base/json/json_string_value_serializer.h" |
| 12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
| 13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "base/sys_info.h" | 16 #include "base/sys_info.h" |
| 17 #include "base/path_service.h" | 17 #include "base/path_service.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" |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 path = path.Append(chrome::kBookmarksFileName); | 415 path = path.Append(chrome::kBookmarksFileName); |
| 416 return new JSONTest(path, ASCIIToUTF16("BookMarks JSON"), 2 * kOneMeg); | 416 return new JSONTest(path, ASCIIToUTF16("BookMarks JSON"), 2 * kOneMeg); |
| 417 } | 417 } |
| 418 | 418 |
| 419 DiagnosticTest* MakeLocalStateTest() { | 419 DiagnosticTest* MakeLocalStateTest() { |
| 420 FilePath path; | 420 FilePath path; |
| 421 PathService::Get(chrome::DIR_USER_DATA, &path); | 421 PathService::Get(chrome::DIR_USER_DATA, &path); |
| 422 path = path.Append(chrome::kLocalStateFilename); | 422 path = path.Append(chrome::kLocalStateFilename); |
| 423 return new JSONTest(path, ASCIIToUTF16("Local State JSON"), 50 * kOneKilo); | 423 return new JSONTest(path, ASCIIToUTF16("Local State JSON"), 50 * kOneKilo); |
| 424 } | 424 } |
| OLD | NEW |