| 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/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/webdata/webdata_constants.h" | |
| 15 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
| 16 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
| 16 #include "components/webdata/common/webdata_constants.h" |
| 17 #include "content/public/common/content_constants.h" | 17 #include "content/public/common/content_constants.h" |
| 18 #include "sql/connection.h" | 18 #include "sql/connection.h" |
| 19 #include "sql/statement.h" | 19 #include "sql/statement.h" |
| 20 #include "third_party/sqlite/sqlite3.h" | 20 #include "third_party/sqlite/sqlite3.h" |
| 21 #include "webkit/appcache/appcache_interfaces.h" | 21 #include "webkit/appcache/appcache_interfaces.h" |
| 22 #include "webkit/database/database_tracker.h" | 22 #include "webkit/database/database_tracker.h" |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 // Generic diagnostic test class for checking sqlite db integrity. | 26 // Generic diagnostic test class for checking sqlite db integrity. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 appcache_db); | 124 appcache_db); |
| 125 } | 125 } |
| 126 | 126 |
| 127 DiagnosticTest* MakeSqliteWebDatabaseTrackerDbTest() { | 127 DiagnosticTest* MakeSqliteWebDatabaseTrackerDbTest() { |
| 128 base::FilePath databases_dir(webkit_database::kDatabaseDirectoryName); | 128 base::FilePath databases_dir(webkit_database::kDatabaseDirectoryName); |
| 129 base::FilePath tracker_db = | 129 base::FilePath tracker_db = |
| 130 databases_dir.Append(webkit_database::kTrackerDatabaseFileName); | 130 databases_dir.Append(webkit_database::kTrackerDatabaseFileName); |
| 131 return new SqliteIntegrityTest(false, ASCIIToUTF16("DatabaseTracker DB"), | 131 return new SqliteIntegrityTest(false, ASCIIToUTF16("DatabaseTracker DB"), |
| 132 tracker_db); | 132 tracker_db); |
| 133 } | 133 } |
| OLD | NEW |