• Victor Costan's avatar
    sqlite: Rewrite tests for custom recovery code. · 455989b0
    Victor Costan authored
    Our largest SQLite patch,
    0001-Virtual-table-supporting-recovery-of-corrupted-datab.patch,
    contains the implementation of a virtual table extension that contains
    custom recovery logic. The automated tests for the extension use
    SQLite's infrastructure base on Tcl, and don't run on CQ.
    
    This CL rewrites the tests to use C++ and //sql, so they can be run on
    CQ. A follow-up CL will replace the recovery code with a rewritten
    version that lives in the Chromium tree.
    
    This CL also adds a test covering the edge cases of the recovery code's
    SQLite varint decoding logic, which has proven useful for debugging the
    rewritten recovery code.
    
    Bug: 945204
    Change-Id: I50c6cbf6f94dc698915e6fb4925769051396cb4b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1603604Reviewed-by: default avatarChris Mumford <cmumford@google.com>
    Commit-Queue: Victor Costan <pwnall@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#659225}
    455989b0
internal_api_token.h 780 Bytes