| 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/base_paths.h" | 7 #include "base/base_paths.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 200 |
| 201 } // namespace | 201 } // namespace |
| 202 | 202 |
| 203 DiagnosticsTest* MakeSqliteCookiesDbTest() { | 203 DiagnosticsTest* MakeSqliteCookiesDbTest() { |
| 204 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, | 204 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, |
| 205 DIAGNOSTICS_SQLITE_INTEGRITY_COOKIE_TEST, | 205 DIAGNOSTICS_SQLITE_INTEGRITY_COOKIE_TEST, |
| 206 base::FilePath(chrome::kCookieFilename)); | 206 base::FilePath(chrome::kCookieFilename)); |
| 207 } | 207 } |
| 208 | 208 |
| 209 DiagnosticsTest* MakeSqliteWebDatabaseTrackerDbTest() { | 209 DiagnosticsTest* MakeSqliteWebDatabaseTrackerDbTest() { |
| 210 base::FilePath databases_dir(webkit_database::kDatabaseDirectoryName); | 210 base::FilePath databases_dir(storage::kDatabaseDirectoryName); |
| 211 base::FilePath tracker_db = | 211 base::FilePath tracker_db = |
| 212 databases_dir.Append(webkit_database::kTrackerDatabaseFileName); | 212 databases_dir.Append(storage::kTrackerDatabaseFileName); |
| 213 return new SqliteIntegrityTest( | 213 return new SqliteIntegrityTest( |
| 214 SqliteIntegrityTest::NO_FLAGS_SET, | 214 SqliteIntegrityTest::NO_FLAGS_SET, |
| 215 DIAGNOSTICS_SQLITE_INTEGRITY_DATABASE_TRACKER_TEST, | 215 DIAGNOSTICS_SQLITE_INTEGRITY_DATABASE_TRACKER_TEST, |
| 216 tracker_db); | 216 tracker_db); |
| 217 } | 217 } |
| 218 | 218 |
| 219 DiagnosticsTest* MakeSqliteHistoryDbTest() { | 219 DiagnosticsTest* MakeSqliteHistoryDbTest() { |
| 220 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, | 220 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, |
| 221 DIAGNOSTICS_SQLITE_INTEGRITY_HISTORY_TEST, | 221 DIAGNOSTICS_SQLITE_INTEGRITY_HISTORY_TEST, |
| 222 base::FilePath(chrome::kHistoryFilename)); | 222 base::FilePath(chrome::kHistoryFilename)); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 246 base::FilePath(chrome::kThumbnailsFilename)); | 246 base::FilePath(chrome::kThumbnailsFilename)); |
| 247 } | 247 } |
| 248 | 248 |
| 249 DiagnosticsTest* MakeSqliteWebDataDbTest() { | 249 DiagnosticsTest* MakeSqliteWebDataDbTest() { |
| 250 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, | 250 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, |
| 251 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST, | 251 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST, |
| 252 base::FilePath(kWebDataFilename)); | 252 base::FilePath(kWebDataFilename)); |
| 253 } | 253 } |
| 254 | 254 |
| 255 } // namespace diagnostics | 255 } // namespace diagnostics |
| OLD | NEW |