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

Issue 17752002: [sql] Additional Raze() unit tests. (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] Additional Raze() unit tests. Verify that Raze() can handle: - empty databases. - non-database files. - databases overwritten with garbage. - databases which cannot be opened successfully. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210923

Patch Set 1 #

Total comments: 14

Patch Set 2 : address comments. #

Patch Set 3 : Trim page_size rather than constant size. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -35 lines) Patch
M sql/connection.cc View 1 2 3 chunks +63 lines, -15 lines 0 comments Download
M sql/connection_unittest.cc View 1 2 9 chunks +154 lines, -20 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Scott Hess - ex-Googler
Recent refactoring allows more thorough testing of these things, and more-thorough testing exposes additional failure ...
7 years, 6 months ago (2013-06-25 21:00:14 UTC) #1
Greg Billock
https://codereview.chromium.org/17752002/diff/1/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/17752002/diff/1/sql/connection.cc#newcode69 sql/connection.cc:69: int BackupDatabase(sqlite3* src, sqlite3* dst, const char* db_name) { ...
7 years, 5 months ago (2013-06-27 21:01:47 UTC) #2
Scott Hess - ex-Googler
https://codereview.chromium.org/17752002/diff/1/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/17752002/diff/1/sql/connection.cc#newcode69 sql/connection.cc:69: int BackupDatabase(sqlite3* src, sqlite3* dst, const char* db_name) { ...
7 years, 5 months ago (2013-06-27 22:41:47 UTC) #3
Greg Billock
lgtm https://codereview.chromium.org/17752002/diff/1/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/17752002/diff/1/sql/connection.cc#newcode352 sql/connection.cc:352: // truncate it before trying again. So we ...
7 years, 5 months ago (2013-06-28 14:29:08 UTC) #4
Scott Hess - ex-Googler
Sheriff-type people: I am headed OOT tomorrow, so if the c-q is super slow or ...
7 years, 5 months ago (2013-06-28 22:51:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/17752002/10002
7 years, 5 months ago (2013-06-28 22:51:50 UTC) #6
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=13129
7 years, 5 months ago (2013-06-29 01:22:12 UTC) #7
Scott Hess - ex-Googler
Oops, need owner for histograms.xml.
7 years, 5 months ago (2013-06-29 01:29:04 UTC) #8
jar (doing other things)
lgtm
7 years, 5 months ago (2013-06-29 02:15:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/17752002/10002
7 years, 5 months ago (2013-06-29 02:16:15 UTC) #10
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) sql_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=65828
7 years, 5 months ago (2013-06-29 02:51:30 UTC) #11
Scott Hess - ex-Googler
On 2013/06/29 02:51:30, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 5 months ago (2013-06-29 03:22:54 UTC) #12
Scott Hess - ex-Googler
Truncating the file by 1024 bytes did not cause iOS to notice that the file ...
7 years, 5 months ago (2013-07-09 20:33:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/17752002/44001
7 years, 5 months ago (2013-07-09 20:34:38 UTC) #14
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-07-09 20:42:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/17752002/44001
7 years, 5 months ago (2013-07-10 19:03:34 UTC) #16
commit-bot: I haz the power
7 years, 5 months ago (2013-07-10 20:46:17 UTC) #17
Message was sent while issue was closed.
Change committed as 210923

Powered by Google App Engine
This is Rietveld 408576698