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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 DISALLOW_COPY_AND_ASSIGN(ErrorRecorder); | 193 DISALLOW_COPY_AND_ASSIGN(ErrorRecorder); |
194 }; | 194 }; |
195 | 195 |
196 uint32 flags_; | 196 uint32 flags_; |
197 base::FilePath db_path_; | 197 base::FilePath db_path_; |
198 DISALLOW_COPY_AND_ASSIGN(SqliteIntegrityTest); | 198 DISALLOW_COPY_AND_ASSIGN(SqliteIntegrityTest); |
199 }; | 199 }; |
200 | 200 |
201 } // namespace | 201 } // namespace |
202 | 202 |
| 203 DiagnosticsTest* MakeSqliteArchivedHistoryDbTest() { |
| 204 return new SqliteIntegrityTest( |
| 205 SqliteIntegrityTest::NO_FLAGS_SET, |
| 206 DIAGNOSTICS_SQLITE_INTEGRITY_ARCHIVED_HISTORY_TEST, |
| 207 base::FilePath(chrome::kArchivedHistoryFilename)); |
| 208 } |
| 209 |
203 DiagnosticsTest* MakeSqliteCookiesDbTest() { | 210 DiagnosticsTest* MakeSqliteCookiesDbTest() { |
204 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, | 211 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, |
205 DIAGNOSTICS_SQLITE_INTEGRITY_COOKIE_TEST, | 212 DIAGNOSTICS_SQLITE_INTEGRITY_COOKIE_TEST, |
206 base::FilePath(chrome::kCookieFilename)); | 213 base::FilePath(chrome::kCookieFilename)); |
207 } | 214 } |
208 | 215 |
209 DiagnosticsTest* MakeSqliteWebDatabaseTrackerDbTest() { | 216 DiagnosticsTest* MakeSqliteWebDatabaseTrackerDbTest() { |
210 base::FilePath databases_dir(webkit_database::kDatabaseDirectoryName); | 217 base::FilePath databases_dir(webkit_database::kDatabaseDirectoryName); |
211 base::FilePath tracker_db = | 218 base::FilePath tracker_db = |
212 databases_dir.Append(webkit_database::kTrackerDatabaseFileName); | 219 databases_dir.Append(webkit_database::kTrackerDatabaseFileName); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 base::FilePath(chrome::kThumbnailsFilename)); | 253 base::FilePath(chrome::kThumbnailsFilename)); |
247 } | 254 } |
248 | 255 |
249 DiagnosticsTest* MakeSqliteWebDataDbTest() { | 256 DiagnosticsTest* MakeSqliteWebDataDbTest() { |
250 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, | 257 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, |
251 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST, | 258 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST, |
252 base::FilePath(kWebDataFilename)); | 259 base::FilePath(kWebDataFilename)); |
253 } | 260 } |
254 | 261 |
255 } // namespace diagnostics | 262 } // namespace diagnostics |
OLD | NEW |