summaryrefslogtreecommitdiffstats
path: root/sql/connection.h
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-12 01:38:56 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-12 01:38:56 +0000
commit98cf3002ce111ffce01bdc68f6a8b078abd2a77d (patch)
tree163daa4d84558802c0dad57b287cbea35a714a01 /sql/connection.h
parent25ff086a748e9b399f8ca78cea3d2811a6545d9d (diff)
downloadchromium_src-98cf3002ce111ffce01bdc68f6a8b078abd2a77d.zip
chromium_src-98cf3002ce111ffce01bdc68f6a8b078abd2a77d.tar.gz
chromium_src-98cf3002ce111ffce01bdc68f6a8b078abd2a77d.tar.bz2
[sql] Callback and scoped-ignore tests for sql::Statement.
Test error callback and ScopedErrorIgnorer for running statements. Share error-callback test code between statement and connection tests. Test additional error-callback edge cases. Also fix callback use-after-free case. BUG=254584 Review URL: https://chromiumcodereview.appspot.com/17726002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sql/connection.h')
-rw-r--r--sql/connection.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/connection.h b/sql/connection.h
index a2e8f67..8155a8f 100644
--- a/sql/connection.h
+++ b/sql/connection.h
@@ -125,6 +125,9 @@ class SQL_EXPORT Connection {
void set_error_callback(const ErrorCallback& callback) {
error_callback_ = callback;
}
+ bool has_error_callback() const {
+ return !error_callback_.is_null();
+ }
void reset_error_callback() {
error_callback_.Reset();
}