From e444c95bb327f0addaa066df4356268cf84bfb46 Mon Sep 17 00:00:00 2001 From: "cpu@chromium.org" Date: Tue, 30 Mar 2010 23:46:17 +0000 Subject: Implement db corruption tests for diagnostic mode - Uses sqlite's pragma integrity_check - Tests the 5 main databases BUG=27885 TEST=none Review URL: http://codereview.chromium.org/1548005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43143 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/diagnostics/diagnostics_model.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'chrome/browser/diagnostics/diagnostics_model.cc') diff --git a/chrome/browser/diagnostics/diagnostics_model.cc b/chrome/browser/diagnostics/diagnostics_model.cc index 0fb53fc..b7a1bc3 100644 --- a/chrome/browser/diagnostics/diagnostics_model.cc +++ b/chrome/browser/diagnostics/diagnostics_model.cc @@ -14,6 +14,7 @@ #include "base/path_service.h" #include "chrome/browser/diagnostics/diagnostics_test.h" #include "chrome/browser/diagnostics/recon_diagnostics.h" +#include "chrome/browser/diagnostics/sqlite_diagnostics.h" #include "chrome/common/chrome_paths.h" namespace { @@ -86,6 +87,11 @@ class DiagnosticsModelWin : public DiagnosticsModelImpl { tests_.push_back(MakeDictonaryDirTest()); tests_.push_back(MakeInspectorDirTest()); tests_.push_back(MakeDiskSpaceTest()); + tests_.push_back(MakeSqliteWebDbTest()); + tests_.push_back(MakeSqliteCookiesDbTest()); + tests_.push_back(MakeSqliteHistoryDbTest()); + tests_.push_back(MakeSqliteArchivedHistoryDbTest()); + tests_.push_back(MakeSqliteThumbnailsDbTest()); } private: @@ -102,6 +108,11 @@ class DiagnosticsModelMac : public DiagnosticsModelImpl { tests_.push_back(MakeDictonaryDirTest()); tests_.push_back(MakeInspectorDirTest()); tests_.push_back(MakeDiskSpaceTest()); + tests_.push_back(MakeSqliteWebDbTest()); + tests_.push_back(MakeSqliteCookiesDbTest()); + tests_.push_back(MakeSqliteHistoryDbTest()); + tests_.push_back(MakeSqliteArchivedHistoryDbTest()); + tests_.push_back(MakeSqliteThumbnailsDbTest()); } private: @@ -118,6 +129,11 @@ class DiagnosticsModelPosix : public DiagnosticsModelImpl { tests_.push_back(MakeDictonaryDirTest()); tests_.push_back(MakeInspectorDirTest()); tests_.push_back(MakeDiskSpaceTest()); + tests_.push_back(MakeSqliteWebDbTest()); + tests_.push_back(MakeSqliteCookiesDbTest()); + tests_.push_back(MakeSqliteHistoryDbTest()); + tests_.push_back(MakeSqliteArchivedHistoryDbTest()); + tests_.push_back(MakeSqliteThumbnailsDbTest()); } private: -- cgit v1.1