diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-10 00:48:06 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-10 00:48:06 +0000 |
commit | cfb82161a738147a3c2621ee8e6d0083bbe54c22 (patch) | |
tree | be2702b2e653bcdc832a6db3803f64295d9698e8 /sql/sql.gyp | |
parent | 8da69f52a6eedded81e2c44e5c64cfab215516ce (diff) | |
download | chromium_src-cfb82161a738147a3c2621ee8e6d0083bbe54c22.zip chromium_src-cfb82161a738147a3c2621ee8e6d0083bbe54c22.tar.gz chromium_src-cfb82161a738147a3c2621ee8e6d0083bbe54c22.tar.bz2 |
[sql] Test recovery of corrupt golden file.
Manually modify a SQLite database to have the problem described by the
bug, then test that it can be recovered.
Also, infrastructure to introduce testing data to sql/ tests.
BUG=387868
Review URL: https://codereview.chromium.org/355093003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282197 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sql/sql.gyp')
-rw-r--r-- | sql/sql.gyp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/sql/sql.gyp b/sql/sql.gyp index 37c6ae7..975cd12 100644 --- a/sql/sql.gyp +++ b/sql/sql.gyp @@ -80,7 +80,6 @@ 'dependencies': [ 'sql', 'test_support_sql', - '../base/base.gyp:run_all_unittests', '../base/base.gyp:test_support_base', '../testing/gtest.gyp:gtest', '../third_party/sqlite/sqlite.gyp:sqlite', @@ -91,6 +90,11 @@ 'recovery_unittest.cc', 'sqlite_features_unittest.cc', 'statement_unittest.cc', + 'test/paths.cc', + 'test/paths.h', + 'test/run_all_unittests.cc', + 'test/sql_test_suite.cc', + 'test/sql_test_suite.h', 'transaction_unittest.cc', ], 'include_dirs': [ @@ -132,5 +136,23 @@ }, ], }], + ['test_isolation_mode != "noop"', { + 'targets': [ + { + 'target_name': 'sql_unittests_run', + 'type': 'none', + 'dependencies': [ + 'sql_unittests', + ], + 'includes': [ + '../build/isolate.gypi', + 'sql_unittests.isolate', + ], + 'sources': [ + 'sql_unittests.isolate', + ], + }, + ], + }], ], } |