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

Issue 2564663003: [Sync] Fake server now updates each model type's progress markers independently. (Closed)

Created:
4 years ago by skym
Modified:
4 years ago
Reviewers:
maxbogue
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Fake server now updates each model type's progress markers independently. Previously the fake server used to update all of the progress markers to the highest single version of an entity being returned in a GetUpdates response. This caused odd behaviors when clients asked for different sets of model types. This in turn resulted in tests failing when they never agreed on some progress marker's version that wasn't actually being actively updated. This change separates all model types version/progress markers in the fake server code. This should help clients that are being enabled mid-test to get match progress markers when priority and non-priority types are requested across separate GetUpdates messages. Also removed some special case logic around filtering deleted items. It is unclear what purpose that logic was serving. BUG=672596 Committed: https://crrev.com/ccc880c2592bb8d82d41dc3ca6559db2bb99280f Cr-Commit-Position: refs/heads/master@{#437690}

Patch Set 1 #

Patch Set 2 : Finishing a comment. #

Patch Set 3 : Rebase. #

Total comments: 8

Patch Set 4 : Updates for max. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -77 lines) Patch
M components/sync/test/fake_server/fake_server.cc View 1 2 3 6 chunks +57 lines, -77 lines 0 comments Download

Messages

Total messages: 26 (20 generated)
skym
Bots seem to be passing, assuaging my fears that the deleted entity logic did anything ...
4 years ago (2016-12-09 17:24:34 UTC) #13
maxbogue
lgtm https://codereview.chromium.org/2564663003/diff/40001/components/sync/test/fake_server/fake_server.cc File components/sync/test/fake_server/fake_server.cc (right): https://codereview.chromium.org/2564663003/diff/40001/components/sync/test/fake_server/fake_server.cc#newcode58 components/sync/test/fake_server/fake_server.cc:58: // from_progress_marker is used to determine this, legacy ...
4 years ago (2016-12-09 21:10:16 UTC) #17
skym
https://codereview.chromium.org/2564663003/diff/40001/components/sync/test/fake_server/fake_server.cc File components/sync/test/fake_server/fake_server.cc (right): https://codereview.chromium.org/2564663003/diff/40001/components/sync/test/fake_server/fake_server.cc#newcode58 components/sync/test/fake_server/fake_server.cc:58: // from_progress_marker is used to determine this, legacy fields ...
4 years ago (2016-12-09 21:51:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2564663003/60001
4 years ago (2016-12-09 21:52:30 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-09 23:29:23 UTC) #24
commit-bot: I haz the power
4 years ago (2016-12-12 14:58:19 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ccc880c2592bb8d82d41dc3ca6559db2bb99280f
Cr-Commit-Position: refs/heads/master@{#437690}

Powered by Google App Engine
This is Rietveld 408576698