summaryrefslogtreecommitdiffstats
path: root/sync/BUILD.gn
diff options
context:
space:
mode:
authormaniscalco <maniscalco@chromium.org>2015-04-30 12:38:56 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-30 19:39:38 +0000
commit8382e4e5dce071e21f1297df234a17bdf7a5ed32 (patch)
tree14718629ea94944dbfc83400902711c8d4eab93f /sync/BUILD.gn
parent610f47342c8d725e239513ac17727a176d161495 (diff)
downloadchromium_src-8382e4e5dce071e21f1297df234a17bdf7a5ed32.zip
chromium_src-8382e4e5dce071e21f1297df234a17bdf7a5ed32.tar.gz
chromium_src-8382e4e5dce071e21f1297df234a17bdf7a5ed32.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 Committed: https://crrev.com/90a7f8d3e3b3a2aac43e71a93eac2731f084945c Cr-Commit-Position: refs/heads/master@{#327120} Review URL: https://codereview.chromium.org/1082893003 Cr-Commit-Position: refs/heads/master@{#327766}
Diffstat (limited to 'sync/BUILD.gn')
-rw-r--r--sync/BUILD.gn4
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",
]