|
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}
Total comments: 51
Total comments: 29
Total comments: 3
|
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
|
Total messages: 19 (6 generated)
|