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

Issue 2713913002: [sync] Add Sessions integration tests (Closed)

Created:
3 years, 10 months ago by Patrick Noland
Modified:
3 years, 9 months ago
Reviewers:
Nicolas Zea, skym
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sync] Add Sessions integration tests Add integration tests for a number of new scenarios: * Multi window, multi tab * Navigation hierarchy changes * Tab movement Add a new checker for waiting to see a SessionsHierarchy on the FakeServer. Refactor some existing tests to use this instead of waiting for sync cycle completion then manually verifying a match. Add several new helper methods to SessionsHelper, and refactor some existing ones. Add the ability to open a new Browser from an existing Profile to SyncTest. R=zea@chromium.org, skym@chromium.org BUG=695241 Review-Url: https://codereview.chromium.org/2713913002 Cr-Commit-Position: refs/heads/master@{#453687} Committed: https://chromium.googlesource.com/chromium/src/+/dd0356002ee91f25daa99dd147c57913517e9aab

Patch Set 1 : Update commit message #

Total comments: 68

Patch Set 2 : Response to comments #

Total comments: 20

Patch Set 3 : Response to further comments #

Patch Set 4 : Fix TwoClient tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+437 lines, -158 lines) Patch
A chrome/browser/sync/test/integration/session_hierarchy_match_checker.h View 1 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/session_hierarchy_match_checker.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/sessions_helper.h View 1 2 2 chunks +28 lines, -17 lines 0 comments Download
M chrome/browser/sync/test/integration/sessions_helper.cc View 1 7 chunks +72 lines, -29 lines 0 comments Download
M chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc View 1 2 13 chunks +178 lines, -28 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.h View 1 2 3 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 4 chunks +24 lines, -15 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc View 1 2 3 9 chunks +53 lines, -57 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync/test/fake_server/sessions_hierarchy.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M components/sync/test/fake_server/sessions_hierarchy.cc View 1 2 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 49 (32 generated)
Patrick Noland
Nicolas, Sky, PTAL
3 years, 10 months ago (2017-02-23 22:12:15 UTC) #16
skym
Love the new cases. Having to deal with multiple kinds of indices is unfortunate. So ...
3 years, 10 months ago (2017-02-24 00:14:10 UTC) #20
Patrick Noland
https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/sessions_helper.cc File chrome/browser/sync/test/integration/sessions_helper.cc (right): https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/sessions_helper.cc#newcode253 chrome/browser/sync/test/integration/sessions_helper.cc:253: if (!OpenTab(profile_index, url)) { On 2017/02/24 00:14:09, skym wrote: ...
3 years, 10 months ago (2017-02-24 01:00:41 UTC) #21
skym
https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/sessions_helper.cc File chrome/browser/sync/test/integration/sessions_helper.cc (right): https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/sessions_helper.cc#newcode253 chrome/browser/sync/test/integration/sessions_helper.cc:253: if (!OpenTab(profile_index, url)) { On 2017/02/24 01:00:40, Patrick Noland ...
3 years, 10 months ago (2017-02-24 16:20:17 UTC) #22
Nicolas Zea
Some initial comments https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/sessions_helper.h File chrome/browser/sync/test/integration/sessions_helper.h (right): https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/sessions_helper.h#newcode39 chrome/browser/sync/test/integration/sessions_helper.h:39: // Copies the local session windows ...
3 years, 10 months ago (2017-02-24 20:25:30 UTC) #23
Patrick Noland
PTAL https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/sessions_helper.cc File chrome/browser/sync/test/integration/sessions_helper.cc (right): https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/sessions_helper.cc#newcode144 chrome/browser/sync/test/integration/sessions_helper.cc:144: tab_contents->GetController().GoBack(); On 2017/02/24 00:14:09, skym wrote: > ->GetController().GoBack(); ...
3 years, 9 months ago (2017-02-27 18:53:26 UTC) #31
skym
https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc File chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc (right): https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc#newcode38 chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc:38: std::vector<ScopedWindowMap> expected_windows(1); On 2017/02/27 18:53:26, Patrick Noland wrote: > ...
3 years, 9 months ago (2017-02-27 19:12:27 UTC) #32
skym
lgtm https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc File chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc (right): https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc#newcode38 chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc:38: std::vector<ScopedWindowMap> expected_windows(1); On 2017/02/27 19:12:27, skym wrote: > ...
3 years, 9 months ago (2017-02-27 19:42:50 UTC) #33
Patrick Noland
https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc File chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc (right): https://codereview.chromium.org/2713913002/diff/60001/chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc#newcode38 chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc:38: std::vector<ScopedWindowMap> expected_windows(1); On 2017/02/27 19:12:27, skym wrote: > On ...
3 years, 9 months ago (2017-02-27 19:44:50 UTC) #34
Nicolas Zea
Just one nit, otherwise LGTM with Skys' comment's addressed. https://codereview.chromium.org/2713913002/diff/100001/chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc File chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc (right): https://codereview.chromium.org/2713913002/diff/100001/chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc#newcode89 chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc:89: ...
3 years, 9 months ago (2017-02-27 23:20:06 UTC) #35
Patrick Noland
https://codereview.chromium.org/2713913002/diff/100001/chrome/browser/sync/test/integration/sessions_helper.h File chrome/browser/sync/test/integration/sessions_helper.h (right): https://codereview.chromium.org/2713913002/diff/100001/chrome/browser/sync/test/integration/sessions_helper.h#newcode31 chrome/browser/sync/test/integration/sessions_helper.h:31: // |local_windows|. Returns true if successful. On 2017/02/27 19:42:50, ...
3 years, 9 months ago (2017-02-27 23:37:08 UTC) #36
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/2713913002/120001
3 years, 9 months ago (2017-02-27 23:37:52 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/390722)
3 years, 9 months ago (2017-02-28 00:50:44 UTC) #41
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/2713913002/140001
3 years, 9 months ago (2017-02-28 19:13:00 UTC) #44
commit-bot: I haz the power
Committed patchset #4 (id:140001) as https://chromium.googlesource.com/chromium/src/+/dd0356002ee91f25daa99dd147c57913517e9aab
3 years, 9 months ago (2017-02-28 20:30:29 UTC) #47
Sergey Ulanov
A revert of this CL (patchset #4 id:140001) has been created in https://codereview.chromium.org/2722953002/ by sergeyu@chromium.org. ...
3 years, 9 months ago (2017-03-01 00:20:57 UTC) #48
jam
3 years, 9 months ago (2017-03-01 04:45:59 UTC) #49

Powered by Google App Engine
This is Rietveld 408576698