Home | History | Annotate | Download | only in diagnostics
      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* MakeSqliteCookiesDbTest();
     25 DiagnosticsTest* MakeSqliteHistoryDbTest();
     26 DiagnosticsTest* MakeSqliteThumbnailsDbTest();
     27 
     28 #if defined(OS_CHROMEOS)
     29 DiagnosticsTest* MakeSqliteNssCertDbTest();
     30 DiagnosticsTest* MakeSqliteNssKeyDbTest();
     31 #endif  // defined(OS_CHROMEOS)
     32 
     33 DiagnosticsTest* MakeSqliteWebDatabaseTrackerDbTest();
     34 DiagnosticsTest* MakeSqliteWebDataDbTest();
     35 
     36 }  // namespace diagnostics
     37 
     38 #endif  // CHROME_BROWSER_DIAGNOSTICS_SQLITE_DIAGNOSTICS_H_
     39