diff options
author | maniscalco <maniscalco@chromium.org> | 2015-04-27 14:15:21 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-27 21:15:33 +0000 |
commit | 90a7f8d3e3b3a2aac43e71a93eac2731f084945c (patch) | |
tree | 7051f4928a7bfb15aea2f585d406f69fe02657c2 /sync/BUILD.gn | |
parent | 5adfb2a5905c9bb71978f45896f39a982ebcddbc (diff) | |
download | chromium_src-90a7f8d3e3b3a2aac43e71a93eac2731f084945c.zip chromium_src-90a7f8d3e3b3a2aac43e71a93eac2731f084945c.tar.gz chromium_src-90a7f8d3e3b3a2aac43e71a93eac2731f084945c.tar.bz2 |
[Sync] Erase sync DB when corrupted
Directory now registers to be notified of catastrophic sync DB errors.
Upon notification, Directory triggers an unrecoverable sync error which
causes ProfileSyncService to delete the sync DB.
Add integration test that verifies the sync DB is deleted when DB
corruption is detected.
Remove unused member variable allow_failure_for_test_ from
DirectoryBackingStore.
Add MockUnrecoverableErrorHandler to assist in writing tests for
Directory.
BUG=470993
Review URL: https://codereview.chromium.org/1082893003
Cr-Commit-Position: refs/heads/master@{#327120}
Diffstat (limited to 'sync/BUILD.gn')
-rw-r--r-- | sync/BUILD.gn | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sync/BUILD.gn b/sync/BUILD.gn index d6cec92..bfb3566 100644 --- a/sync/BUILD.gn +++ b/sync/BUILD.gn @@ -444,6 +444,8 @@ static_library("test_support_sync_core") { "sessions/test_util.cc", "sessions/test_util.h", "test/callback_counter.h", + "test/directory_backing_store_corruption_testing.cc", + "test/directory_backing_store_corruption_testing.h", "test/engine/fake_model_worker.cc", "test/engine/fake_model_worker.h", "test/engine/fake_sync_scheduler.cc", @@ -488,6 +490,8 @@ static_library("test_support_sync_core") { "test/test_transaction_observer.h", "test/trackable_mock_invalidation.cc", "test/trackable_mock_invalidation.h", + "util/mock_unrecoverable_error_handler.cc", + "util/mock_unrecoverable_error_handler.h", "util/test_unrecoverable_error_handler.cc", "util/test_unrecoverable_error_handler.h", ] |