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

Issue 4732005: [Sync] Added some basic extension sync integration tests. (Closed)

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

Description

[Sync] Added some basic extension sync integration tests. Refactored theme integration tests to share code with extension integration tests. Fixed a crasher in ExtensionUpdater when run under integration tests. BUG=53531 TEST=New integration tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65911

Patch Set 1 #

Patch Set 2 : Fixed whitespace #

Total comments: 18

Patch Set 3 : Addressed rsimha's comments #

Total comments: 10

Patch Set 4 : Addressed rsimha's comments #

Total comments: 3

Patch Set 5 : addressed rsimha's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+538 lines, -126 lines) Patch
M chrome/chrome_tests.gypi View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
A chrome/test/live_sync/live_extensions_sync_test.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/test/live_sync/live_extensions_sync_test.cc View 1 2 1 chunk +76 lines, -0 lines 0 comments Download
A chrome/test/live_sync/live_extensions_sync_test_base.h View 1 2 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/test/live_sync/live_extensions_sync_test_base.cc View 1 2 1 chunk +122 lines, -0 lines 0 comments Download
M chrome/test/live_sync/live_themes_sync_test.h View 2 chunks +2 lines, -13 lines 0 comments Download
M chrome/test/live_sync/live_themes_sync_test.cc View 1 chunk +2 lines, -67 lines 0 comments Download
A chrome/test/live_sync/single_client_live_extensions_sync_test.cc View 1 2 3 4 1 chunk +57 lines, -0 lines 0 comments Download
M chrome/test/live_sync/single_client_live_themes_sync_test.cc View 1 2 3 4 4 chunks +15 lines, -18 lines 0 comments Download
A chrome/test/live_sync/two_client_live_extensions_sync_test.cc View 1 2 3 1 chunk +121 lines, -0 lines 0 comments Download
M chrome/test/live_sync/two_client_live_themes_sync_test.cc View 1 2 3 4 chunks +25 lines, -28 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
akalin
+rsimha for review I'll probably decomp the ExtensionUpdater change into its own CL.
10 years, 1 month ago (2010-11-09 22:09:15 UTC) #1
Raghu Simha
Really nice work! I've made a few comments that mostly have to do with improving ...
10 years, 1 month ago (2010-11-10 21:42:41 UTC) #2
akalin
Addressed all comments. I want to do some more cleanup, but that can wait until ...
10 years, 1 month ago (2010-11-12 01:20:44 UTC) #3
Raghu Simha
LGTM, with some minor comments. Thanks for adding these tests! http://codereview.chromium.org/4732005/diff/11001/chrome/test/live_sync/live_extensions_sync_test_base.h File chrome/test/live_sync/live_extensions_sync_test_base.h (right): http://codereview.chromium.org/4732005/diff/11001/chrome/test/live_sync/live_extensions_sync_test_base.h#newcode40 ...
10 years, 1 month ago (2010-11-12 01:40:50 UTC) #4
Raghu Simha
Correcting an earlier comment. Still LGTM! http://codereview.chromium.org/4732005/diff/22001/chrome/test/live_sync/single_client_live_extensions_sync_test.cc File chrome/test/live_sync/single_client_live_extensions_sync_test.cc (right): http://codereview.chromium.org/4732005/diff/22001/chrome/test/live_sync/single_client_live_extensions_sync_test.cc#newcode40 chrome/test/live_sync/single_client_live_extensions_sync_test.cc:40: ASSERT_TRUE(AwaitQuiescence()); On 2010/11/12 ...
10 years, 1 month ago (2010-11-12 01:43:42 UTC) #5
akalin
Addresssed all comments, made one more pass over calls to AwaitQuiescence, et al. Can you ...
10 years, 1 month ago (2010-11-12 02:19:03 UTC) #6
Raghu Simha
Responses to your comments are below. No need to wait for another review. http://codereview.chromium.org/4732005/diff/22001/chrome/test/live_sync/single_client_live_extensions_sync_test.cc File ...
10 years, 1 month ago (2010-11-12 02:32:20 UTC) #7
akalin
10 years, 1 month ago (2010-11-12 02:47:10 UTC) #8
Okay, checking in as soon as trybots pass!

http://codereview.chromium.org/4732005/diff/22001/chrome/test/live_sync/singl...
File chrome/test/live_sync/single_client_live_extensions_sync_test.cc (right):

http://codereview.chromium.org/4732005/diff/22001/chrome/test/live_sync/singl...
chrome/test/live_sync/single_client_live_extensions_sync_test.cc:55:
ASSERT_TRUE(AwaitQuiescence());
On 2010/11/12 02:32:20, rsimha wrote:
> On 2010/11/12 02:19:03, akalin wrote:
> > On 2010/11/12 01:40:50, rsimha wrote:
> > > Same comment as above.
> > 
> > It's a single-client test, so AwaitQuiescence is okay as we discussed.
> 
> Yeah, in this case, it's equivalent to a call to AwaitSyncCycleCompletion in
> theory, because there's only one client. However, I'd recommend directly
calling
> AwaitSyncCycleCompletion in single client tests. This will avoid the overhead
of
> 2 levels of function calls, and will make the logs (when verbose logging is
> enabled) easier to understand, by not spewing 3 lines of logging when only one
> is sufficient.

Done.

Powered by Google App Engine
This is Rietveld 408576698