0
Go to file
David Van Cleve f7b270fdbb sql: Have MetaTable expose a "delete the table" method
sql::MetaTable works by manipulating a caller-provided database to store
additional version information in a new metadata table. Some clients
using sql::MetaTable might start out with their databases unversioned
and switch to maintaining version metadata at a later time. In this
case, it can help to be able to test the no-metadata-maintained to
metadata-maintained upgrade.  However, once a database begins using a
metadata table, it might be difficult to emulate the state of the
database prior to using a metadata table. Clearing out the initialized
metadata table can achieve this effect, but the name of the metadata
table is an implementation detail, so it's not possible to just delete
the table directly from test code. To get around this issue, this CL
adds an sql::MetaTable::DeleteTableForTesting method to do just that.

As one example, the child CL crrev.com/c/2908133 uses this method to
verify its database correctly handles an upgrade from a state with no
version written to disk.

Bug: None
Change-Id: I5d440e11196638a04ad16beb4002ed5d3e25af19
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2920848
Commit-Queue: Victor Costan <pwnall@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#894658}
2021-06-22 13:27:19 +00:00
2021-06-22 02:23:17 +00:00
2021-06-22 04:12:37 +00:00
2021-06-18 21:20:03 +00:00
2021-06-21 21:53:21 +00:00
2021-06-15 22:14:40 +00:00
2021-06-21 12:28:28 +00:00
2021-06-21 20:20:44 +00:00
2021-05-27 09:10:38 +00:00
2021-06-21 22:37:25 +00:00

Logo Chromium

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.

The project's web site is https://www.chromium.org.

To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure .

For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.

If you found a bug, please file it at https://crbug.com/new.

Description
Chromium是一个开源浏览器项目,提供了一种安全、快速、稳定的方法来体验Web。该浏览器可以在多个平台上下载,包括Mac、Windows、Linux和ChromiumOS。项目原始地址: https://chromium.googlesource.com/chromium/src.git
https://www.mobibrw.com/gitea-mirrors/chromium/src.git
Readme BSD-3-Clause 89 GiB
Languages
C++ 74.4%
Java 8.2%
Objective-C++ 4.6%
TypeScript 4%
Python 2.5%
Other 6.1%