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

Issue 2725813003: reland of [sync] Add Sessions integration tests (Closed)

Created:
3 years, 9 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

reland of [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/2725813003 Cr-Commit-Position: refs/heads/master@{#454481} Committed: https://chromium.googlesource.com/chromium/src/+/1a3b9e6a70c04989ec277114f50417164fc9f32f

Patch Set 1 : Original patch #

Patch Set 2 : Fix CookieJarMismatch and FragmentURLNavigation #

Total comments: 12

Patch Set 3 : use data uris, remove e_t_s #

Total comments: 16

Patch Set 4 : Switch back to WaitForURLOnServer, make everything a constant #

Unified diffs Side-by-side diffs Delta from patch set Stats (+461 lines, -200 lines) Patch
A chrome/browser/sync/test/integration/session_hierarchy_match_checker.h View 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/session_hierarchy_match_checker.cc View 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/sessions_helper.h View 1 2 2 chunks +32 lines, -17 lines 0 comments Download
M chrome/browser/sync/test/integration/sessions_helper.cc View 7 chunks +72 lines, -29 lines 0 comments Download
M chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc View 1 2 3 14 chunks +190 lines, -64 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.h View 3 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 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 +61 lines, -63 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync/test/fake_server/sessions_hierarchy.h View 1 chunk +6 lines, -0 lines 0 comments Download
M components/sync/test/fake_server/sessions_hierarchy.cc View 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
Patrick Noland
Nicolas, Sky, PTAL as this contains non-trivial changes Notably: - Fixed the order of an ...
3 years, 9 months ago (2017-03-01 23:46:33 UTC) #4
skym
https://codereview.chromium.org/2725813003/diff/10001/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/2725813003/diff/10001/chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc#newcode58 chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc:58: EXPECT_GE(sample_count, expected_inclusive_lower_bound); When trying to always put the expected ...
3 years, 9 months ago (2017-03-02 19:56:11 UTC) #7
Patrick Noland
PTAL https://codereview.chromium.org/2725813003/diff/10001/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/2725813003/diff/10001/chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc#newcode58 chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc:58: EXPECT_GE(sample_count, expected_inclusive_lower_bound); On 2017/03/02 19:56:11, skym wrote: > ...
3 years, 9 months ago (2017-03-02 21:57:45 UTC) #12
skym
lgtm https://codereview.chromium.org/2725813003/diff/10001/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/2725813003/diff/10001/chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc#newcode350 chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc:350: TriggerSyncForModelTypes(0, syncer::ModelTypeSet(syncer::SESSIONS)); On 2017/03/02 21:57:45, Patrick Noland wrote: ...
3 years, 9 months ago (2017-03-02 22:59:43 UTC) #13
Patrick Noland
https://codereview.chromium.org/2725813003/diff/10001/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/2725813003/diff/10001/chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc#newcode350 chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc:350: TriggerSyncForModelTypes(0, syncer::ModelTypeSet(syncer::SESSIONS)); On 2017/03/02 22:59:43, skym wrote: > On ...
3 years, 9 months ago (2017-03-02 23:32:48 UTC) #15
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/2725813003/70001
3 years, 9 months ago (2017-03-02 23:33:40 UTC) #18
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 02:52:42 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:70001) as
https://chromium.googlesource.com/chromium/src/+/1a3b9e6a70c04989ec277114f504...

Powered by Google App Engine
This is Rietveld 408576698