Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: sql/recovery.h

Issue 24989006: Disable recovery test for USE_SYSTEM_SQLITE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/thumbnail_database_unittest.cc ('k') | sql/recovery.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/recovery.h
diff --git a/sql/recovery.h b/sql/recovery.h
index e832da600147004cbcc5cb80d06db04cc977695a..be23e97a76b20c70e0820c92d16a3337cca84d19 100644
--- a/sql/recovery.h
+++ b/sql/recovery.h
@@ -41,6 +41,15 @@ class SQL_EXPORT Recovery {
public:
~Recovery();
+ // This module is intended to be used in concert with a virtual
+ // table module (see third_party/sqlite/src/src/recover.c). If the
+ // build defines USE_SYSTEM_SQLITE, this module will not be present.
+ // TODO(shess): I am still debating how to handle this - perhaps it
+ // will just imply Unrecoverable(). This is exposed to allow tests
+ // to adapt to the cases, please do not rely on it in production
+ // code.
+ static bool FullRecoverySupported();
+
// Begin the recovery process by opening a temporary database handle
// and attach the existing database to it at "corrupt". To prevent
// deadlock, all transactions on |connection| are rolled back.
« no previous file with comments | « chrome/browser/history/thumbnail_database_unittest.cc ('k') | sql/recovery.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698