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

Issue 342853004: 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
Project:
chromium
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. Removes or renames many other redundant tests. BUG=97780, 95742, 351159 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282241

Patch Set 1 #

Total comments: 18

Patch Set 2 : Un-disable verifier #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -582 lines) Patch
M chrome/browser/sync/test/integration/preferences_helper.h View 2 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/sync/test/integration/preferences_helper.cc View 10 chunks +168 lines, -39 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 1 chunk +8 lines, -5 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc View 1 2 chunks +66 lines, -530 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rlarocque
Here's the alternate approach to https://codereview.chromium.org/315823002/. This version does not attempt to maintain redundant tests. ...
6 years, 6 months ago (2014-06-20 20:03:36 UTC) #1
pval...(no longer on Chromium)
ok, this is a lot to look at (happy to see deletion of questionably-valued tests), ...
6 years, 6 months ago (2014-06-21 00:50:00 UTC) #2
rlarocque
On 2014/06/21 00:50:00, pvalenzuela wrote: > ok, this is a lot to look at (happy ...
6 years, 6 months ago (2014-06-24 16:56:31 UTC) #3
rlarocque
Tim: Ping again.
6 years, 6 months ago (2014-06-25 17:52:07 UTC) #4
rlarocque
On 2014/06/25 17:52:07, rlarocque wrote: > Tim: Ping again. Tim: Ping.
6 years, 6 months ago (2014-06-26 19:56:05 UTC) #5
rlarocque
Looks like Tim won't be reviewing this. Nicolas, please take a look.
6 years, 5 months ago (2014-07-09 17:50:01 UTC) #6
Nicolas Zea
LGTM with a question https://codereview.chromium.org/342853004/diff/1/chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc File chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc (right): https://codereview.chromium.org/342853004/diff/1/chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc#newcode44 chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc:44: DisableVerifier(); Why do we disable ...
6 years, 5 months ago (2014-07-09 18:52:15 UTC) #7
rlarocque
https://codereview.chromium.org/342853004/diff/1/chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc File chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc (right): https://codereview.chromium.org/342853004/diff/1/chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc#newcode44 chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc:44: DisableVerifier(); On 2014/07/09 18:52:15, Nicolas Zea wrote: > Why ...
6 years, 5 months ago (2014-07-09 19:01:18 UTC) #8
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 5 months ago (2014-07-09 20:48:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/342853004/20001
6 years, 5 months ago (2014-07-09 20:51:45 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-10 00:22:27 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 03:45:06 UTC) #12
Message was sent while issue was closed.
Change committed as 282241

Powered by Google App Engine
This is Rietveld 408576698