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

Issue 772513004: Add new E2E sync multi profiles tests. This should not affect any existing (Closed)

Created:
6 years ago by shadi
Modified:
5 years, 11 months ago
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, maxbogue+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add new E2E sync multi profiles tests. This should not affect any existing test cases. The multi profiles tests creates multiple profiles each in different user data dirs and signs in each one separately. Then each profile performs sync related operations and verifies results on the other sync'ed profile. The CL also adds some helper functions to force a client to do a sync cycle. Note: These tests are DISABLED and do not run on the normal bots. BUG=431366 Committed: https://crrev.com/c956a156641baacbf4748330f379d4086681ccd0 Cr-Commit-Position: refs/heads/master@{#311534}

Patch Set 1 #

Total comments: 12

Patch Set 2 : nits #

Total comments: 6

Patch Set 3 : implement OnSyncCycleCompleted send refresh notifications #

Total comments: 7

Patch Set 4 : nits #

Patch Set 5 : fix compile issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -1 line) Patch
M chrome/browser/sync/test/integration/bookmarks_helper.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/bookmarks_helper.cc View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/p2p_sync_refresher.h View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/p2p_sync_refresher.cc View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/single_client_e2e_test.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 4 5 chunks +18 lines, -1 line 0 comments Download
A chrome/browser/sync/test/integration/two_client_e2e_test.cc View 1 2 3 4 1 chunk +80 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (9 generated)
shadi
PTAL. The tests pass with current test servers setup locally.
6 years ago (2014-12-06 01:50:06 UTC) #2
pval...(no longer on Chromium)
apologies for the slow review https://codereview.chromium.org/772513004/diff/1/chrome/browser/sync/test/integration/bookmarks_helper.cc File chrome/browser/sync/test/integration/bookmarks_helper.cc (right): https://codereview.chromium.org/772513004/diff/1/chrome/browser/sync/test/integration/bookmarks_helper.cc#newcode673 chrome/browser/sync/test/integration/bookmarks_helper.cc:673: void NotifyBookmarksSync(int profile) { ...
6 years ago (2014-12-09 18:44:08 UTC) #3
shadi
PTAL https://codereview.chromium.org/772513004/diff/1/chrome/browser/sync/test/integration/bookmarks_helper.cc File chrome/browser/sync/test/integration/bookmarks_helper.cc (right): https://codereview.chromium.org/772513004/diff/1/chrome/browser/sync/test/integration/bookmarks_helper.cc#newcode673 chrome/browser/sync/test/integration/bookmarks_helper.cc:673: void NotifyBookmarksSync(int profile) { On 2014/12/09 18:44:08, pvalenzuela ...
6 years ago (2014-12-10 18:10:10 UTC) #4
pval...(no longer on Chromium)
https://codereview.chromium.org/772513004/diff/1/chrome/browser/sync/test/integration/bookmarks_helper.cc File chrome/browser/sync/test/integration/bookmarks_helper.cc (right): https://codereview.chromium.org/772513004/diff/1/chrome/browser/sync/test/integration/bookmarks_helper.cc#newcode673 chrome/browser/sync/test/integration/bookmarks_helper.cc:673: void NotifyBookmarksSync(int profile) { On 2014/12/10 18:10:10, shadi wrote: ...
6 years ago (2014-12-11 19:24:52 UTC) #5
Nicolas Zea
https://codereview.chromium.org/772513004/diff/20001/chrome/browser/sync/test/integration/bookmarks_helper.h File chrome/browser/sync/test/integration/bookmarks_helper.h (right): https://codereview.chromium.org/772513004/diff/20001/chrome/browser/sync/test/integration/bookmarks_helper.h#newcode138 chrome/browser/sync/test/integration/bookmarks_helper.h:138: // Sends sync refresh notification for bookmarks model set ...
6 years ago (2014-12-11 19:45:34 UTC) #6
shadi
This patch replaces the timeouts to force sync refresh with an obrserver for OnSyncCycleCompleted. I ...
6 years ago (2014-12-17 22:50:16 UTC) #9
pval...(no longer on Chromium)
This looks really cool. https://codereview.chromium.org/772513004/diff/80001/chrome/browser/sync/test/integration/p2p_sync_refresher.h File chrome/browser/sync/test/integration/p2p_sync_refresher.h (right): https://codereview.chromium.org/772513004/diff/80001/chrome/browser/sync/test/integration/p2p_sync_refresher.h#newcode18 chrome/browser/sync/test/integration/p2p_sync_refresher.h:18: class P2PSyncRefresher : public ProfileSyncServiceObserver ...
6 years ago (2014-12-18 01:47:25 UTC) #10
Nicolas Zea
Nice job! LGTM with some nits https://codereview.chromium.org/772513004/diff/80001/chrome/browser/sync/test/integration/p2p_sync_refresher.h File chrome/browser/sync/test/integration/p2p_sync_refresher.h (right): https://codereview.chromium.org/772513004/diff/80001/chrome/browser/sync/test/integration/p2p_sync_refresher.h#newcode13 chrome/browser/sync/test/integration/p2p_sync_refresher.h:13: // This class ...
6 years ago (2014-12-18 20:55:25 UTC) #11
shadi
Fixed nits, but still not sure on final class name. https://codereview.chromium.org/772513004/diff/80001/chrome/browser/sync/test/integration/p2p_sync_refresher.h File chrome/browser/sync/test/integration/p2p_sync_refresher.h (right): https://codereview.chromium.org/772513004/diff/80001/chrome/browser/sync/test/integration/p2p_sync_refresher.h#newcode13 ...
6 years ago (2014-12-19 19:15:12 UTC) #12
pval...(no longer on Chromium)
lgtm https://codereview.chromium.org/772513004/diff/80001/chrome/browser/sync/test/integration/p2p_sync_refresher.h File chrome/browser/sync/test/integration/p2p_sync_refresher.h (right): https://codereview.chromium.org/772513004/diff/80001/chrome/browser/sync/test/integration/p2p_sync_refresher.h#newcode18 chrome/browser/sync/test/integration/p2p_sync_refresher.h:18: class P2PSyncRefresher : public ProfileSyncServiceObserver { On 2014/12/19 ...
6 years ago (2014-12-22 23:49:39 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/772513004/100001
5 years, 11 months ago (2015-01-13 23:55:04 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/113320)
5 years, 11 months ago (2015-01-14 00:18:24 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/772513004/120001
5 years, 11 months ago (2015-01-14 01:11:07 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/48776)
5 years, 11 months ago (2015-01-14 01:22:12 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/772513004/140001
5 years, 11 months ago (2015-01-14 18:43:38 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:140001)
5 years, 11 months ago (2015-01-14 19:47:05 UTC) #25
commit-bot: I haz the power
5 years, 11 months ago (2015-01-14 19:48:02 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c956a156641baacbf4748330f379d4086681ccd0
Cr-Commit-Position: refs/heads/master@{#311534}

Powered by Google App Engine
This is Rietveld 408576698