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

Issue 1176653002: mandoline filesystem: add a sqlite3 vfs to proxy filesystem usage. (Closed)

Created:
5 years, 6 months ago by Elliot Glaysher
Modified:
5 years, 6 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mandoline filesystem: add a sqlite3 vfs to proxy filesystem usage. This adds a //sql/mojo library which can be linked into preexisting sqlite3 code which adds a new VFS which transparently proxies filesystem usage to the mojo:filesystem application. We create a new sql_apptests.mojo target, which currently has all the sql connection_unittests.cc (minus 2 hard ones), all statement and transaction unit tests and refactor the sql testing stuff so that we have two implementations of an SQLTestBase class: one that uses files raw and one that proxies to the filesystem process. Notably, this patch does not implement file locking, which will have to be implemented before we can safely use this, but will be a large enough patch in and of itself that I'm punting on it for this patch. BUG=493311 Committed: https://crrev.com/102ceb4133685db70ac15cb5bcb134a85736fe86 Cr-Commit-Position: refs/heads/master@{#335415}

Patch Set 1 #

Patch Set 2 : Restore CorruptSizeInHeader for other test suites and rename it to not conflict. #

Patch Set 3 : Temporary fix to the android build. #

Patch Set 4 : Update gyp files. #

Patch Set 5 : Change name back, and then change the name in the //sql tests #

Patch Set 6 : Fix the content_unittests failure by changing sql::Connection::Delete(). #

Patch Set 7 : Use a redirection source_set with check_includes disabled. #

Patch Set 8 : Final gn check failure. #

Patch Set 9 : Patch cleanup now that gn check passes. #

Total comments: 51

Patch Set 10 : Adding the statement and transaction tests since they apear to work locally without any modificatio… #

Patch Set 11 : Added VFS unit tests. #

Patch Set 12 : Merge with ToT and fix the test import. #

Total comments: 29

Patch Set 13 : Another round. #

Total comments: 3

Patch Set 14 : fix shess nits #

Patch Set 15 : fix win 8 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1497 lines, -226 lines) Patch
M components/filesystem/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/filesystem/directory_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M components/filesystem/directory_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +38 lines, -0 lines 0 comments Download
M components/filesystem/directory_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M components/filesystem/file_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/filesystem/file_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
M components/filesystem/file_impl_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M components/filesystem/files_test_base.h View 1 chunk +0 lines, -67 lines 0 comments Download
M components/filesystem/files_test_base.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/filesystem/public/interfaces/directory.mojom View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
M components/filesystem/public/interfaces/file.mojom View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M components/filesystem/public/interfaces/types.mojom View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M mandoline/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/network/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M mojo/tools/data/apptests View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -2 lines 0 comments Download
A mojo/util/capture_util.h View 1 chunk +36 lines, -0 lines 0 comments Download
M sql/BUILD.gn View 1 2 3 4 5 6 3 chunks +14 lines, -0 lines 0 comments Download
M sql/connection.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +40 lines, -11 lines 0 comments Download
M sql/connection_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 16 chunks +31 lines, -55 lines 0 comments Download
A sql/correct_sql_test_base.h View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
M sql/meta_table_unittest.cc View 1 chunk +2 lines, -15 lines 0 comments Download
A sql/mojo/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +62 lines, -0 lines 0 comments Download
A + sql/mojo/DEPS View 1 chunk +2 lines, -1 line 0 comments Download
A sql/mojo/mojo_vfs.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +45 lines, -0 lines 0 comments Download
A sql/mojo/mojo_vfs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +413 lines, -0 lines 0 comments Download
A sql/mojo/sql_test_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +85 lines, -0 lines 0 comments Download
A sql/mojo/sql_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +156 lines, -0 lines 0 comments Download
A sql/mojo/vfs_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +317 lines, -0 lines 0 comments Download
M sql/recovery_unittest.cc View 2 chunks +2 lines, -26 lines 0 comments Download
M sql/sql.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M sql/sqlite_features_unittest.cc View 2 chunks +7 lines, -10 lines 0 comments Download
M sql/statement_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -15 lines 0 comments Download
A sql/test/sql_test_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +78 lines, -0 lines 0 comments Download
A sql/test/sql_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +66 lines, -0 lines 0 comments Download
M sql/test/test_helpers.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M sql/test/test_helpers.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +16 lines, -11 lines 0 comments Download
M sql/transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -12 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
Elliot Glaysher
sky: mojo-y stuff shess: sql-y stuff https://codereview.chromium.org/1176653002/diff/150001/mojo/util/capture_util.h File mojo/util/capture_util.h (right): https://codereview.chromium.org/1176653002/diff/150001/mojo/util/capture_util.h#newcode11 mojo/util/capture_util.h:11: This was moved ...
5 years, 6 months ago (2015-06-10 20:35:16 UTC) #2
sky
I just looked at components/filesystem and mojo/ . I briefly looked at sql/mojo, but shess ...
5 years, 6 months ago (2015-06-10 21:26:27 UTC) #3
Scott Hess - ex-Googler
First pass to stir the pot on sql/ stuff. https://codereview.chromium.org/1176653002/diff/150001/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/1176653002/diff/150001/sql/connection.cc#newcode639 sql/connection.cc:639: ...
5 years, 6 months ago (2015-06-10 22:35:46 UTC) #4
Elliot Glaysher
https://codereview.chromium.org/1176653002/diff/150001/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/1176653002/diff/150001/sql/connection.cc#newcode639 sql/connection.cc:639: sqlite3_vfs* vfs = sqlite3_vfs_find(NULL); On 2015/06/10 22:35:45, Scott Hess ...
5 years, 6 months ago (2015-06-12 22:36:44 UTC) #5
Elliot Glaysher
shess: friendly ping
5 years, 6 months ago (2015-06-16 20:46:40 UTC) #6
Scott Hess - ex-Googler
https://codereview.chromium.org/1176653002/diff/150001/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/1176653002/diff/150001/sql/connection.cc#newcode639 sql/connection.cc:639: sqlite3_vfs* vfs = sqlite3_vfs_find(NULL); On 2015/06/12 22:36:43, Elliot Glaysher ...
5 years, 6 months ago (2015-06-17 19:32:59 UTC) #7
Elliot Glaysher
https://codereview.chromium.org/1176653002/diff/150001/sql/mojo/enable_mojo_fs.cc File sql/mojo/enable_mojo_fs.cc (right): https://codereview.chromium.org/1176653002/diff/150001/sql/mojo/enable_mojo_fs.cc#newcode47 sql/mojo/enable_mojo_fs.cc:47: filesystem::DirectoryPtr root_directory; On 2015/06/17 19:32:58, Scott Hess wrote: > ...
5 years, 6 months ago (2015-06-17 21:59:35 UTC) #8
Scott Hess - ex-Googler
LGTM, author's choice on the nits. https://codereview.chromium.org/1176653002/diff/150001/sql/mojo/enable_mojo_fs.cc File sql/mojo/enable_mojo_fs.cc (right): https://codereview.chromium.org/1176653002/diff/150001/sql/mojo/enable_mojo_fs.cc#newcode47 sql/mojo/enable_mojo_fs.cc:47: filesystem::DirectoryPtr root_directory; On ...
5 years, 6 months ago (2015-06-19 20:48:02 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176653002/250001
5 years, 6 months ago (2015-06-19 21:07:56 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/8397)
5 years, 6 months ago (2015-06-19 22:38:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176653002/270001
5 years, 6 months ago (2015-06-19 23:14:07 UTC) #17
commit-bot: I haz the power
Committed patchset #15 (id:270001)
5 years, 6 months ago (2015-06-20 01:38:38 UTC) #18
commit-bot: I haz the power
5 years, 6 months ago (2015-06-20 01:39:26 UTC) #19
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/102ceb4133685db70ac15cb5bcb134a85736fe86
Cr-Commit-Position: refs/heads/master@{#335415}

Powered by Google App Engine
This is Rietveld 408576698