1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_DIAGNOSTICS_SQLITE_DIAGNOSTICS_H_ 6 #define CHROME_BROWSER_DIAGNOSTICS_SQLITE_DIAGNOSTICS_H_ 7 8 #include "chrome/browser/diagnostics/diagnostics_test.h" 9 10 namespace diagnostics { 11 12 enum SQLiteIntegrityOutcomeCode { 13 DIAG_SQLITE_SUCCESS, 14 DIAG_SQLITE_FILE_NOT_FOUND_OK, 15 DIAG_SQLITE_FILE_NOT_FOUND, 16 DIAG_SQLITE_ERROR_HANDLER_CALLED, 17 DIAG_SQLITE_CANNOT_OPEN_DB, 18 DIAG_SQLITE_DB_LOCKED, 19 DIAG_SQLITE_PRAGMA_FAILED, 20 DIAG_SQLITE_DB_CORRUPTED 21 }; 22 23 // Factories for the database integrity tests we run in diagnostic mode. 24 DiagnosticsTest* MakeSqliteAppCacheDbTest(); 25 DiagnosticsTest* MakeSqliteArchivedHistoryDbTest(); 26 DiagnosticsTest* MakeSqliteCookiesDbTest(); 27 DiagnosticsTest* MakeSqliteHistoryDbTest(); 28 DiagnosticsTest* MakeSqliteThumbnailsDbTest(); 29 30 #if defined(OS_CHROMEOS) 31 DiagnosticsTest* MakeSqliteNssCertDbTest(); 32 DiagnosticsTest* MakeSqliteNssKeyDbTest(); 33 #endif // defined(OS_CHROMEOS) 34 35 DiagnosticsTest* MakeSqliteWebDatabaseTrackerDbTest(); 36 DiagnosticsTest* MakeSqliteWebDataDbTest(); 37 38 } // namespace diagnostics 39 40 #endif // CHROME_BROWSER_DIAGNOSTICS_SQLITE_DIAGNOSTICS_H_ 41