Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Issue 1090413005: [Sync] Add test to verify sync DB corruption handling during SaveChanges (Closed)

Created:
5 years, 8 months ago by maniscalco
Modified:
5 years, 8 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Add test to verify sync DB corruption handling during SaveChanges BUG=470993 Committed: https://crrev.com/9f5d1bfcc8d3f856c921c8910f005f305df128c3 Cr-Commit-Position: refs/heads/master@{#326802}

Patch Set 1 #

Patch Set 2 : Write more entries. #

Patch Set 3 : Check WriteFile result correctly this time. #

Patch Set 4 : Use FILE so we can corrupt DB on Windows. #

Patch Set 5 : Properly check fwrite return value. #

Patch Set 6 : Improve comment. #

Total comments: 2

Patch Set 7 : Update comment based on code review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -11 lines) Patch
M sync/syncable/directory_backing_store.h View 1 chunk +4 lines, -1 line 0 comments Download
M sync/syncable/directory_backing_store_unittest.cc View 1 2 3 4 5 6 6 chunks +67 lines, -10 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1090413005/20001
5 years, 8 months ago (2015-04-22 22:01:50 UTC) #2
maniscalco
Nicolas, would you please review this change?
5 years, 8 months ago (2015-04-23 21:09:07 UTC) #5
Nicolas Zea
LGTM with one question/concern https://codereview.chromium.org/1090413005/diff/120001/sync/syncable/directory_backing_store_unittest.cc File sync/syncable/directory_backing_store_unittest.cc (right): https://codereview.chromium.org/1090413005/diff/120001/sync/syncable/directory_backing_store_unittest.cc#newcode4100 sync/syncable/directory_backing_store_unittest.cc:4100: // won't keep it all ...
5 years, 8 months ago (2015-04-23 21:53:27 UTC) #6
maniscalco
Thanks for the speedy review! I've updated the comments based on your feedback. https://codereview.chromium.org/1090413005/diff/120001/sync/syncable/directory_backing_store_unittest.cc File ...
5 years, 8 months ago (2015-04-23 22:57:48 UTC) #7
Nicolas Zea
lgtm
5 years, 8 months ago (2015-04-24 00:53:39 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1090413005/140001
5 years, 8 months ago (2015-04-24 15:24:24 UTC) #10
commit-bot: I haz the power
Committed patchset #7 (id:140001)
5 years, 8 months ago (2015-04-24 15:31:07 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 15:32:01 UTC) #12
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/9f5d1bfcc8d3f856c921c8910f005f305df128c3
Cr-Commit-Position: refs/heads/master@{#326802}

Powered by Google App Engine
This is Rietveld 408576698