| 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/sqlite_diagnostics.h" | 5 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 DiagnosticsTest* MakeSqliteNssKeyDbTest() { | 239 DiagnosticsTest* MakeSqliteNssKeyDbTest() { |
| 240 base::FilePath home_dir; | 240 base::FilePath home_dir; |
| 241 PathService::Get(base::DIR_HOME, &home_dir); | 241 PathService::Get(base::DIR_HOME, &home_dir); |
| 242 return new SqliteIntegrityTest(SqliteIntegrityTest::REMOVE_IF_CORRUPT, | 242 return new SqliteIntegrityTest(SqliteIntegrityTest::REMOVE_IF_CORRUPT, |
| 243 DIAGNOSTICS_SQLITE_INTEGRITY_NSS_KEY_TEST, | 243 DIAGNOSTICS_SQLITE_INTEGRITY_NSS_KEY_TEST, |
| 244 home_dir.Append(chromeos::kNssKeyDbPath)); | 244 home_dir.Append(chromeos::kNssKeyDbPath)); |
| 245 } | 245 } |
| 246 #endif // defined(OS_CHROMEOS) | 246 #endif // defined(OS_CHROMEOS) |
| 247 | 247 |
| 248 DiagnosticsTest* MakeSqliteThumbnailsDbTest() { | 248 DiagnosticsTest* MakeSqliteFaviconsDbTest() { |
| 249 return new SqliteIntegrityTest(SqliteIntegrityTest::NO_FLAGS_SET, | 249 return new SqliteIntegrityTest(SqliteIntegrityTest::NO_FLAGS_SET, |
| 250 DIAGNOSTICS_SQLITE_INTEGRITY_THUMBNAILS_TEST, | 250 DIAGNOSTICS_SQLITE_INTEGRITY_FAVICONS_TEST, |
| 251 base::FilePath(history::kThumbnailsFilename)); | 251 base::FilePath(history::kFaviconsFilename)); |
| 252 } |
| 253 |
| 254 DiagnosticsTest* MakeSqliteTopSitesDbTest() { |
| 255 return new SqliteIntegrityTest(SqliteIntegrityTest::NO_FLAGS_SET, |
| 256 DIAGNOSTICS_SQLITE_INTEGRITY_TOPSITES_TEST, |
| 257 base::FilePath(history::kTopSitesFilename)); |
| 252 } | 258 } |
| 253 | 259 |
| 254 DiagnosticsTest* MakeSqliteWebDataDbTest() { | 260 DiagnosticsTest* MakeSqliteWebDataDbTest() { |
| 255 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, | 261 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, |
| 256 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST, | 262 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST, |
| 257 base::FilePath(kWebDataFilename)); | 263 base::FilePath(kWebDataFilename)); |
| 258 } | 264 } |
| 259 | 265 |
| 260 } // namespace diagnostics | 266 } // namespace diagnostics |
| OLD | NEW |