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

Issue 490643004: sync: Refactor migration integration tests (Closed)

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

Description

sync: Refactor migration integration tests Refactors the migration tests to no longer reuse the same StatusChangeChecker. Splits the previous MigrationChecker into two separate classes: MigrationWaiter and MigrationWatcher. The waiter is long-lived and observes migrations. The waiter exists only while we're waiting for a migration to complete. BUG=97780, 95742 Committed: https://crrev.com/23f8f38115c398503d045e174d76b3bdef94744b Cr-Commit-Position: refs/heads/master@{#292720}

Patch Set 1 #

Total comments: 10

Patch Set 2 : rebase #

Patch Set 3 : Address review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -102 lines) Patch
M chrome/browser/sync/test/integration/migration_test.cc View 1 2 7 chunks +10 lines, -102 lines 0 comments Download
A chrome/browser/sync/test/integration/migration_waiter.h View 1 2 1 chunk +47 lines, -0 lines 1 comment Download
A chrome/browser/sync/test/integration/migration_waiter.cc View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/migration_watcher.h View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/migration_watcher.cc View 1 chunk +66 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
rlarocque
This started as an attempt to refactor bookmarks integration tests. You can see that effort ...
6 years, 4 months ago (2014-08-20 00:45:15 UTC) #1
pval...(no longer on Chromium)
I'll be out for a month, so I'll let resetswitch@ look at this one to ...
6 years, 4 months ago (2014-08-20 19:11:37 UTC) #2
Nicolas Zea
LGTM with some nits and a comment https://codereview.chromium.org/490643004/diff/1/chrome/browser/sync/test/integration/migration_waiter.h File chrome/browser/sync/test/integration/migration_waiter.h (right): https://codereview.chromium.org/490643004/diff/1/chrome/browser/sync/test/integration/migration_waiter.h#newcode22 chrome/browser/sync/test/integration/migration_waiter.h:22: MigrationWaiter(MigrationWatcher* watcher, ...
6 years, 4 months ago (2014-08-20 22:24:10 UTC) #3
rlarocque
Patch updated. PTAL. https://codereview.chromium.org/490643004/diff/1/chrome/browser/sync/test/integration/migration_waiter.h File chrome/browser/sync/test/integration/migration_waiter.h (right): https://codereview.chromium.org/490643004/diff/1/chrome/browser/sync/test/integration/migration_waiter.h#newcode22 chrome/browser/sync/test/integration/migration_waiter.h:22: MigrationWaiter(MigrationWatcher* watcher, On 2014/08/20 22:24:10, Nicolas ...
6 years, 4 months ago (2014-08-21 00:41:20 UTC) #4
David Abrahams
lgtm https://codereview.chromium.org/490643004/diff/40001/chrome/browser/sync/test/integration/migration_waiter.h File chrome/browser/sync/test/integration/migration_waiter.h (right): https://codereview.chromium.org/490643004/diff/40001/chrome/browser/sync/test/integration/migration_waiter.h#newcode39 chrome/browser/sync/test/integration/migration_waiter.h:39: MigrationWatcher* const watcher_; Nit: Feels a little weird ...
6 years, 4 months ago (2014-08-22 18:54:41 UTC) #5
rlarocque
I just remembered that this exists. I think this should be safe to commit, but ...
6 years, 3 months ago (2014-08-29 21:50:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/490643004/40001
6 years, 3 months ago (2014-08-29 22:43:39 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 74407c7942d4cf1207827417858bc34576b0fc18
6 years, 3 months ago (2014-08-29 23:52:05 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:11:50 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/23f8f38115c398503d045e174d76b3bdef94744b
Cr-Commit-Position: refs/heads/master@{#292720}

Powered by Google App Engine
This is Rietveld 408576698