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