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

Issue 17726002: [sql] Callback and scoped-ignore tests for sql::Statement. (Closed)

Created:
7 years, 6 months ago by Scott Hess - ex-Googler
Modified:
7 years, 5 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

[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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211281

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add test for whether curried values stay live. #

Total comments: 2

Patch Set 3 : prevent nesting, TODO. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -33 lines) Patch
M sql/connection.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M sql/connection.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M sql/connection_unittest.cc View 1 2 3 chunks +103 lines, -0 lines 0 comments Download
M sql/sql.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M sql/statement_unittest.cc View 3 chunks +24 lines, -32 lines 0 comments Download
A sql/test/error_callback_support.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A sql/test/error_callback_support.cc View 1 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Scott Hess - ex-Googler
Circling back on something Erik noted as being left-over after some recent refactoring. But Erik ...
7 years, 6 months ago (2013-06-25 20:58:53 UTC) #1
Greg Billock
https://codereview.chromium.org/17726002/diff/1/sql/statement_unittest.cc File sql/statement_unittest.cc (right): https://codereview.chromium.org/17726002/diff/1/sql/statement_unittest.cc#newcode83 sql/statement_unittest.cc:83: sql::ScopedErrorCallback sec( The way I'd envision this being used ...
7 years, 5 months ago (2013-06-27 20:27:26 UTC) #2
Scott Hess - ex-Googler
https://codereview.chromium.org/17726002/diff/1/sql/statement_unittest.cc File sql/statement_unittest.cc (right): https://codereview.chromium.org/17726002/diff/1/sql/statement_unittest.cc#newcode83 sql/statement_unittest.cc:83: sql::ScopedErrorCallback sec( On 2013/06/27 20:27:26, Greg Billock wrote: > ...
7 years, 5 months ago (2013-06-27 20:59:45 UTC) #3
Scott Hess - ex-Googler
Sorry for the delay - poking around in my overall sql-test-cleanup CLs, I found another ...
7 years, 5 months ago (2013-06-28 22:04:37 UTC) #4
erikwright (departed)
https://codereview.chromium.org/17726002/diff/13001/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/17726002/diff/13001/sql/connection.cc#newcode804 sql/connection.cc:804: // Fire from a copy of the callback in ...
7 years, 5 months ago (2013-07-05 19:16:54 UTC) #5
Scott Hess - ex-Googler
https://codereview.chromium.org/17726002/diff/13001/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/17726002/diff/13001/sql/connection.cc#newcode804 sql/connection.cc:804: // Fire from a copy of the callback in ...
7 years, 5 months ago (2013-07-08 21:15:35 UTC) #6
Scott Hess - ex-Googler
BTW - AFAICT, if the callback code is modified to implicitly addref, I believe that ...
7 years, 5 months ago (2013-07-10 22:03:19 UTC) #7
Greg Billock
lgtm https://codereview.chromium.org/17726002/diff/1/sql/statement_unittest.cc File sql/statement_unittest.cc (right): https://codereview.chromium.org/17726002/diff/1/sql/statement_unittest.cc#newcode83 sql/statement_unittest.cc:83: sql::ScopedErrorCallback sec( On 2013/06/28 22:04:37, shess wrote: > ...
7 years, 5 months ago (2013-07-10 22:16:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/17726002/29002
7 years, 5 months ago (2013-07-11 21:33:38 UTC) #9
commit-bot: I haz the power
7 years, 5 months ago (2013-07-12 01:39:02 UTC) #10
Message was sent while issue was closed.
Change committed as 211281

Powered by Google App Engine
This is Rietveld 408576698