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

Unified Diff: sql/test/scoped_error_ignorer.h

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. Created 5 years, 10 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
Index: sql/test/scoped_error_ignorer.h
diff --git a/sql/test/scoped_error_ignorer.h b/sql/test/scoped_error_ignorer.h
index e77717999d0790fa768211cf2e2af905e21ef3e6..79559a1e38ce401817d0b2d1b83aa4ca37a9a587 100644
--- a/sql/test/scoped_error_ignorer.h
+++ b/sql/test/scoped_error_ignorer.h
@@ -10,6 +10,11 @@
#include "base/basictypes.h"
#include "sql/connection.h"
+// This is not strictly necessary for the operation of ScopedErrorIgnorer, but
+// the class is not useful without the SQLite error codes.
+#include "third_party/sqlite/sqlite3.h"
+
+// TODO(shess): sql::test:: seems like it could be in order for this.
namespace sql {
// sql::Connection and sql::Statement treat most SQLite errors as
@@ -43,6 +48,10 @@ class ScopedErrorIgnorer {
// Record an error and check if it should be ignored.
bool ShouldIgnore(int err);
+ // Expose sqlite3_libversion_number() so that clients don't have to add a
+ // dependency on third_party/sqlite.
+ static int SQLiteLibVersionNumber();
+
private:
// Storage for callback passed to Connection::SetErrorIgnorer().
Connection::ErrorIgnorerCallback callback_;

Powered by Google App Engine
This is Rietveld 408576698