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

Issue 203074: Refactor the DB code to make all DB layout tests pass on test_shell.... (Closed)

Created:
11 years, 3 months ago by dumi
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, jam, darin (slow to review), brettw, pam+watch_chromium.org, Ben Goodger (Google)
Visibility:
Public.

Description

Refactor the DB code to make it accessible from test_shell. BUG=21442 TEST=none

Patch Set 1 #

Patch Set 2 : Minor fixes + changes to DEPS files. #

Total comments: 6

Patch Set 3 : Merged test_shell_webkit_init.h. #

Total comments: 6

Patch Set 4 : Addressed Michael's comments. #

Total comments: 16

Patch Set 5 : Addressed Michael's comments. #

Patch Set 6 : Added a hack to close the handle to the main DB. #

Total comments: 23

Patch Set 7 : Addressed Michael's comments. #

Patch Set 8 : Resolved merge conflicts that make trybots fail. #

Patch Set 9 : Fixed a compilation error. #

Patch Set 10 : Fixed another compilation error. Trybots should be happy now. #

Total comments: 10

Patch Set 11 : '' #

Total comments: 12

Patch Set 12 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -537 lines) Patch
M chrome/browser/DEPS View 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/database_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +29 lines, -207 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M webkit/DEPS View 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A webkit/database/vfs_backend.h View 4 5 6 7 8 9 10 11 1 chunk +33 lines, -0 lines 0 comments Download
A + webkit/database/vfs_backend.cc View 4 5 6 7 8 9 10 11 5 chunks +56 lines, -321 lines 0 comments Download
M webkit/tools/test_shell/layout_test_controller.h View 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/layout_test_controller.cc View 4 5 6 7 8 9 10 11 4 chunks +9 lines, -2 lines 0 comments Download
A webkit/tools/test_shell/simple_database_system.h View 4 5 6 7 8 9 10 11 1 chunk +38 lines, -0 lines 0 comments Download
A webkit/tools/test_shell/simple_database_system.cc View 4 5 6 7 8 9 10 11 1 chunk +107 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell_webkit_init.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +33 lines, -7 lines 0 comments Download
M webkit/webkit.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
michaeln
This is a nice refactoring. Maybe mention in the CL description that this allows us ...
11 years, 3 months ago (2009-09-15 21:53:46 UTC) #1
dumi
http://codereview.chromium.org/203074/diff/2003/1008 File chrome/browser/renderer_host/database_dispatcher_host.cc (right): http://codereview.chromium.org/203074/diff/2003/1008#newcode118 Line 118: if (error_code == SQLITE_IOERR_DELETE) { On 2009/09/15 21:53:46, ...
11 years, 3 months ago (2009-09-16 19:51:15 UTC) #2
michaeln
just a couple of things http://codereview.chromium.org/203074/diff/3004/4015 File webkit/database/vfs_backend.cc (right): http://codereview.chromium.org/203074/diff/3004/4015#newcode20 Line 20: static bool OpenFileFlagsAreConsistent(const ...
11 years, 3 months ago (2009-09-16 20:33:20 UTC) #3
michaeln
ooops... one more thing... http://codereview.chromium.org/203074/diff/3004/4014 File webkit/tools/test_shell/simple_database_system.cc (right): http://codereview.chromium.org/203074/diff/3004/4014#newcode42 Line 42: while ((numRetries < kNumDeleteRetries) ...
11 years, 3 months ago (2009-09-16 20:48:45 UTC) #4
dumi
http://codereview.chromium.org/203074/diff/3004/4015 File webkit/database/vfs_backend.cc (right): http://codereview.chromium.org/203074/diff/3004/4015#newcode20 Line 20: static bool OpenFileFlagsAreConsistent(const FilePath& file_name, On 2009/09/16 20:33:20, ...
11 years, 3 months ago (2009-09-16 22:28:41 UTC) #5
michaeln
http://codereview.chromium.org/203074/diff/11008/12016 File webkit/database/vfs_backend.h (right): http://codereview.chromium.org/203074/diff/11008/12016#newcode6 Line 6: #define WEBKIT_DATABASE_VFS_BACKEND_H_ no need to svn copy the ...
11 years, 3 months ago (2009-09-18 03:56:39 UTC) #6
dumi
http://codereview.chromium.org/203074/diff/11008/12016 File webkit/database/vfs_backend.h (right): http://codereview.chromium.org/203074/diff/11008/12016#newcode6 Line 6: #define WEBKIT_DATABASE_VFS_BACKEND_H_ On 2009/09/18 03:56:40, michaeln wrote: > ...
11 years, 3 months ago (2009-09-18 22:18:41 UTC) #7
michaeln
Aa few #includes and comments to look at, otherwise LGTM. http://codereview.chromium.org/203074/diff/9018/9032 File webkit/database/vfs_backend.h (right): http://codereview.chromium.org/203074/diff/9018/9032#newcode9 ...
11 years, 3 months ago (2009-09-20 16:48:23 UTC) #8
dumi
http://codereview.chromium.org/203074/diff/9018/9032 File webkit/database/vfs_backend.h (right): http://codereview.chromium.org/203074/diff/9018/9032#newcode9 Line 9: #include "base/platform_file.h" On 2009/09/20 16:48:23, michaeln wrote: > ...
11 years, 3 months ago (2009-09-21 19:08:14 UTC) #9
dumi
11 years, 3 months ago (2009-09-21 19:09:31 UTC) #10
michaeln
lgtm!
11 years, 3 months ago (2009-09-21 22:28:26 UTC) #11
darin (slow to review)
http://codereview.chromium.org/203074/diff/17022/18014 File webkit/database/vfs_backend.h (right): http://codereview.chromium.org/203074/diff/17022/18014#newcode13 Line 13: namespace database { the namespace should be webkit_database, ...
11 years, 3 months ago (2009-09-21 23:47:31 UTC) #12
dumi
http://codereview.chromium.org/203074/diff/17022/18014 File webkit/database/vfs_backend.h (right): http://codereview.chromium.org/203074/diff/17022/18014#newcode13 Line 13: namespace database { On 2009/09/21 23:47:31, darin wrote: ...
11 years, 3 months ago (2009-09-22 02:30:47 UTC) #13
darin (slow to review)
11 years, 3 months ago (2009-09-22 04:03:54 UTC) #14
LGTM!

Powered by Google App Engine
This is Rietveld 408576698