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

Issue 303643003: sync: Refactor autofill integration tests (Closed)

Created:
6 years, 7 months ago by rlarocque
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

sync: Refactor autofill integration tests Refactors the autofill integration tests so they no longer need to rely on snapshots or self-notifications. Deletes the integration tests around disabling the type or disabling sync, since we decided in the review of r269198 that those tests are not valuable. Introduces KeysMatchStatusChangeChecker, a fairly typical MultiClientStatusChangeChecker based on the existing KeysMatch() function. Introduces ProfilesMatchStatusChecker, which might be the first StatusChangeChecker to not register as an observer of the ProfileSyncService. Autofill profiles are stored and synced on the DB thread but cached on the UI thread. There's no guarantee that the UI thread cache of autofill profile data would be up to date by the time the sync cycle notificaiton is emitted. Instead of listening for sync notifications, the ProfileMatchStatusChangeChecker registers with the owner of the UI thread cache of autofill profile data, the PersonalDataManager, so it can be notified directly when the cache is updated. Since it uses a new notification mechanism, there is some reason to believe this could fix issue 152551. BUG=97780, 95742, 152551 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273122

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -125 lines) Patch
M chrome/browser/sync/test/integration/autofill_helper.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/autofill_helper.cc View 3 chunks +149 lines, -12 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc View 25 chunks +37 lines, -113 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
rlarocque
Here's another round of integration test refactorings. Patrick: Please review. Nicolas: Please review + approve.
6 years, 7 months ago (2014-05-27 18:25:53 UTC) #1
pval...(no longer on Chromium)
lgtm Nice, I like this new method of verification.
6 years, 7 months ago (2014-05-27 21:23:37 UTC) #2
Nicolas Zea
lgtm
6 years, 7 months ago (2014-05-27 21:28:54 UTC) #3
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-05-27 21:40:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/303643003/1
6 years, 7 months ago (2014-05-27 21:41:34 UTC) #5
commit-bot: I haz the power
6 years, 7 months ago (2014-05-28 02:51:40 UTC) #6
Message was sent while issue was closed.
Change committed as 273122

Powered by Google App Engine
This is Rietveld 408576698