| 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 "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 DiagnosticsTest* MakeSqliteArchivedHistoryDbTest() { | 212 DiagnosticsTest* MakeSqliteArchivedHistoryDbTest() { |
| 213 return new SqliteIntegrityTest( | 213 return new SqliteIntegrityTest( |
| 214 SqliteIntegrityTest::NO_FLAGS_SET, | 214 SqliteIntegrityTest::NO_FLAGS_SET, |
| 215 DIAGNOSTICS_SQLITE_INTEGRITY_ARCHIVED_HISTORY_TEST, | 215 DIAGNOSTICS_SQLITE_INTEGRITY_ARCHIVED_HISTORY_TEST, |
| 216 base::FilePath(chrome::kArchivedHistoryFilename)); | 216 base::FilePath(chrome::kArchivedHistoryFilename)); |
| 217 } | 217 } |
| 218 | 218 |
| 219 DiagnosticsTest* MakeSqliteCookiesDbTest() { | 219 DiagnosticsTest* MakeSqliteCookiesDbTest() { |
| 220 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, | 220 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, |
| 221 DIAGNOSTICS_SQLITE_INTEGRITY_COOKIE_TEST, | 221 DIAGNOSTICS_SQLITE_INTEGRITY_COOKIE_TEST, |
| 222 base::FilePath(chrome::kCookieFilename)); | 222 base::FilePath(content::kCookieFilename)); |
| 223 } | 223 } |
| 224 | 224 |
| 225 DiagnosticsTest* MakeSqliteWebDatabaseTrackerDbTest() { | 225 DiagnosticsTest* MakeSqliteWebDatabaseTrackerDbTest() { |
| 226 base::FilePath databases_dir(webkit_database::kDatabaseDirectoryName); | 226 base::FilePath databases_dir(webkit_database::kDatabaseDirectoryName); |
| 227 base::FilePath tracker_db = | 227 base::FilePath tracker_db = |
| 228 databases_dir.Append(webkit_database::kTrackerDatabaseFileName); | 228 databases_dir.Append(webkit_database::kTrackerDatabaseFileName); |
| 229 return new SqliteIntegrityTest( | 229 return new SqliteIntegrityTest( |
| 230 SqliteIntegrityTest::NO_FLAGS_SET, | 230 SqliteIntegrityTest::NO_FLAGS_SET, |
| 231 DIAGNOSTICS_SQLITE_INTEGRITY_DATABASE_TRACKER_TEST, | 231 DIAGNOSTICS_SQLITE_INTEGRITY_DATABASE_TRACKER_TEST, |
| 232 tracker_db); | 232 tracker_db); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 260 base::FilePath(chrome::kThumbnailsFilename)); | 260 base::FilePath(chrome::kThumbnailsFilename)); |
| 261 } | 261 } |
| 262 | 262 |
| 263 DiagnosticsTest* MakeSqliteWebDataDbTest() { | 263 DiagnosticsTest* MakeSqliteWebDataDbTest() { |
| 264 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, | 264 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, |
| 265 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST, | 265 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST, |
| 266 base::FilePath(kWebDataFilename)); | 266 base::FilePath(kWebDataFilename)); |
| 267 } | 267 } |
| 268 | 268 |
| 269 } // namespace diagnostics | 269 } // namespace diagnostics |
| OLD | NEW |