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

Issue 6873061: [Sync] Revamp and re-enable themes/extensions sync integration tests (Closed)

Created:
9 years, 8 months ago by akalin
Modified:
9 years, 7 months ago
Reviewers:
Raghu Simha
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., tim (not reviewing)
Visibility:
Public.

Description

[Sync] Revamp and re-enable themes/extensions sync integration tests Remove LiveExtensionsSyncTestBase and replace it with LiveExtensionSyncHelper. Distinguish extensions with the same ID but installed on different profiles. Reenable all disabled tests. BUG=70028, 66925 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82089

Patch Set 1 #

Patch Set 2 : Fix compile errors #

Total comments: 6

Patch Set 3 : Address raghu's comments #

Patch Set 4 : Sync to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+494 lines, -396 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/live_sync/live_extensions_sync_test.h View 1 chunk +13 lines, -14 lines 0 comments Download
M chrome/test/live_sync/live_extensions_sync_test.cc View 1 3 chunks +43 lines, -24 lines 0 comments Download
D chrome/test/live_sync/live_extensions_sync_test_base.h View 1 chunk +0 lines, -69 lines 0 comments Download
D chrome/test/live_sync/live_extensions_sync_test_base.cc View 1 chunk +0 lines, -126 lines 0 comments Download
A chrome/test/live_sync/live_sync_extension_helper.h View 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/test/live_sync/live_sync_extension_helper.cc View 1 1 chunk +196 lines, -0 lines 0 comments Download
M chrome/test/live_sync/live_themes_sync_test.h View 1 chunk +35 lines, -29 lines 0 comments Download
M chrome/test/live_sync/live_themes_sync_test.cc View 1 chunk +55 lines, -35 lines 0 comments Download
M chrome/test/live_sync/single_client_live_extensions_sync_test.cc View 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/test/live_sync/single_client_live_themes_sync_test.cc View 3 chunks +14 lines, -16 lines 0 comments Download
M chrome/test/live_sync/two_client_live_extensions_sync_test.cc View 4 chunks +26 lines, -32 lines 0 comments Download
M chrome/test/live_sync/two_client_live_themes_sync_test.cc View 1 2 7 chunks +37 lines, -41 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
akalin
+rsimha for review
9 years, 8 months ago (2011-04-19 02:15:38 UTC) #1
Raghu Simha
Very cool work! LGTM with a couple of minor concerns, involving the positioning of ASSERTs. ...
9 years, 8 months ago (2011-04-19 04:20:04 UTC) #2
akalin
9 years, 8 months ago (2011-04-19 06:48:16 UTC) #3
All comments addressed, submitting once trybots pass

http://codereview.chromium.org/6873061/diff/29/chrome/test/live_sync/two_clie...
File chrome/test/live_sync/two_client_live_themes_sync_test.cc (right):

http://codereview.chromium.org/6873061/diff/29/chrome/test/live_sync/two_clie...
chrome/test/live_sync/two_client_live_themes_sync_test.cc:32:
ASSERT_FALSE(UsingCustomTheme(GetProfile(1)));
On 2011/04/19 04:20:05, rsimha wrote:
> It's possible that sync could be complete even before you call
> AwaitMutualSyncCycleCompletion, if a previous action runs the message loop. In
> this particular case, I think you should be fine, since
> UsingCustomTheme(GetProfile(1)) will be false even after sync is complete.
> However, it might be worth placing a similar check after
> AwaitMutualSyncCycleCompletion to be sure.

Done.

http://codereview.chromium.org/6873061/diff/29/chrome/test/live_sync/two_clie...
chrome/test/live_sync/two_client_live_themes_sync_test.cc:57:
ASSERT_FALSE(UsingNativeTheme(GetProfile(1)));
On 2011/04/19 04:20:05, rsimha wrote:
> This may or may not be false, depending on whether a sync cycle managed to
sneak
> in during a previous run of the message loop.

Done.

http://codereview.chromium.org/6873061/diff/29/chrome/test/live_sync/two_clie...
chrome/test/live_sync/two_client_live_themes_sync_test.cc:79:
ASSERT_FALSE(UsingDefaultTheme(GetProfile(1)));
On 2011/04/19 04:20:05, rsimha wrote:
> Same concern here, as described in the above comment.

Done.

Powered by Google App Engine
This is Rietveld 408576698