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

Issue 315823002: sync: Refactor TwoClientPreferencesSyncTest (Closed)

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

Description

sync: Refactor TwoClientPreferencesSyncTest Makes the TwoClientPreferencesSyncTests compatible with reflection-blocking and enables reflection-blocking in its test harness. Introduces new StatusCheckers that wait for preferences. The new preference status checkers work by observering preference changes rather than sync cycle completion notifications. Also introduces some new status checkers to wait until encryption is enabled. Removes DisablePreferences and DisableSync tests because we have decided that there is not enough value in testing disable scenarios to bother maintaining them for each type. Removes several translation tests because they seem to not provide much additional value and they would be particularly onerous to maintain. Each one of these tests would have needed its own status checker or a generic status-checker that makes use of an injected Closure. Removes several encryption tests because they were redundant. BUG=97780, 95742, 351159

Patch Set 1 #

Total comments: 14

Patch Set 2 : Formatting fix + explicit constructors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -336 lines) Patch
M chrome/browser/sync/test/integration/preferences_helper.h View 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/preferences_helper.cc View 1 9 chunks +162 lines, -31 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 chunk +8 lines, -5 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc View 12 chunks +129 lines, -300 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
rlarocque
+Patrick for review. +Tim for historical perspective, review, and owners stamp. Here's a refactoring of ...
6 years, 6 months ago (2014-06-04 01:14:44 UTC) #1
pval...(no longer on Chromium)
https://codereview.chromium.org/315823002/diff/1/chrome/browser/sync/test/integration/preferences_helper.cc File chrome/browser/sync/test/integration/preferences_helper.cc (right): https://codereview.chromium.org/315823002/diff/1/chrome/browser/sync/test/integration/preferences_helper.cc#newcode277 chrome/browser/sync/test/integration/preferences_helper.cc:277: } add blank line after this one https://codereview.chromium.org/315823002/diff/1/chrome/browser/sync/test/integration/preferences_helper.cc#newcode370 chrome/browser/sync/test/integration/preferences_helper.cc:370: ...
6 years, 6 months ago (2014-06-04 18:06:30 UTC) #2
rlarocque
https://codereview.chromium.org/315823002/diff/1/chrome/browser/sync/test/integration/preferences_helper.cc File chrome/browser/sync/test/integration/preferences_helper.cc (right): https://codereview.chromium.org/315823002/diff/1/chrome/browser/sync/test/integration/preferences_helper.cc#newcode277 chrome/browser/sync/test/integration/preferences_helper.cc:277: } On 2014/06/04 18:06:31, pvalenzuela wrote: > add blank ...
6 years, 6 months ago (2014-06-04 18:24:40 UTC) #3
pval...(no longer on Chromium)
lgtm I support the deletion of the superfluous pref tests as long as we're confident ...
6 years, 6 months ago (2014-06-04 23:00:41 UTC) #4
rlarocque
6 years, 6 months ago (2014-06-05 17:46:33 UTC) #5
Tim, what are your thoughts on deleting the tests that each test a single
preference, and instead keeping one for each preference type?

Powered by Google App Engine
This is Rietveld 408576698