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

Issue 7599019: Allow sync integration tests to operate on multiple datatypes: Apps, Extensions, Themes (Closed)

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

Description

Allow sync integration tests to operate on multiple datatypes: Apps, Extensions, Themes The sync integration tests currently use a class hierarchy where the test classes for each datatype are subclasses of LiveSyncTest. While this design worked in the past, it allows tests to work with only one datatype at a time, and therefore doesn't allow us to test the interplay between datatypes. This patch is another in the series of patches that will move away from an inheritance model to one where test cases can operate on more than one datatype. It updates the Apps, Extensions and Themes datatypes to the new model, and contains the following changes: - LiveAppsSyncTest is no longer a class that inherits from LiveSyncTest, but is now a namespace called apps_helper, and contains a bunch of methods that perform various operations related to Apps. Similar changes were made to Extensions and Themes. - SingleClientLiveAppsSyncTest is renamed to SingleClientAppsSyncTest, and is a subclass of LiveSyncTest. It uses the methods in namespace apps_helper by including its header file and attaching itself to the helper. Similar changes were made to Extensions and Themes. - LiveSyncExtensionHelper is renamed to SyncExtensionHelper. BUG=88510 TEST=sync_integration_tests, sync_performance_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96292

Patch Set 1 : "" #

Total comments: 2

Patch Set 2 : CR feedback #

Total comments: 4

Patch Set 3 : Fix indents #

Unified diffs Side-by-side diffs Delta from patch set Stats (+686 lines, -2104 lines) Patch
M chrome/chrome_tests.gypi View 1 4 chunks +18 lines, -18 lines 0 comments Download
A chrome/test/live_sync/apps_helper.h View 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/test/live_sync/apps_helper.cc View 1 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/test/live_sync/extensions_helper.h View 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/test/live_sync/extensions_helper.cc View 1 1 chunk +125 lines, -0 lines 0 comments Download
D chrome/test/live_sync/live_apps_sync_test.h View 1 chunk +0 lines, -62 lines 0 comments Download
D chrome/test/live_sync/live_apps_sync_test.cc View 1 chunk +0 lines, -84 lines 0 comments Download
D chrome/test/live_sync/live_extensions_sync_test.h View 1 chunk +0 lines, -109 lines 0 comments Download
D chrome/test/live_sync/live_extensions_sync_test.cc View 1 chunk +0 lines, -135 lines 0 comments Download
D chrome/test/live_sync/live_sync_extension_helper.h View 1 chunk +0 lines, -113 lines 0 comments Download
D chrome/test/live_sync/live_sync_extension_helper.cc View 1 chunk +0 lines, -348 lines 0 comments Download
D chrome/test/live_sync/live_themes_sync_test.h View 1 chunk +0 lines, -68 lines 0 comments Download
D chrome/test/live_sync/live_themes_sync_test.cc View 1 chunk +0 lines, -81 lines 0 comments Download
M chrome/test/live_sync/performance/extensions_sync_perf_test.cc View 1 3 chunks +17 lines, -5 lines 0 comments Download
A + chrome/test/live_sync/single_client_apps_sync_test.cc View 2 chunks +12 lines, -12 lines 0 comments Download
A + chrome/test/live_sync/single_client_extensions_sync_test.cc View 2 chunks +18 lines, -6 lines 0 comments Download
D chrome/test/live_sync/single_client_live_apps_sync_test.cc View 1 chunk +0 lines, -56 lines 0 comments Download
D chrome/test/live_sync/single_client_live_extensions_sync_test.cc View 1 chunk +0 lines, -45 lines 0 comments Download
D chrome/test/live_sync/single_client_live_themes_sync_test.cc View 1 chunk +0 lines, -89 lines 0 comments Download
A + chrome/test/live_sync/single_client_themes_sync_test.cc View 3 chunks +20 lines, -10 lines 0 comments Download
A + chrome/test/live_sync/sync_extension_helper.h View 1 4 chunks +15 lines, -8 lines 0 comments Download
A + chrome/test/live_sync/sync_extension_helper.cc View 1 2 9 chunks +40 lines, -27 lines 0 comments Download
A chrome/test/live_sync/themes_helper.h View 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/test/live_sync/themes_helper.cc View 1 1 chunk +75 lines, -0 lines 0 comments Download
A + chrome/test/live_sync/two_client_apps_sync_test.cc View 10 chunks +28 lines, -23 lines 0 comments Download
A + chrome/test/live_sync/two_client_extensions_sync_test.cc View 10 chunks +34 lines, -15 lines 0 comments Download
D chrome/test/live_sync/two_client_live_apps_sync_test.cc View 1 chunk +0 lines, -275 lines 0 comments Download
D chrome/test/live_sync/two_client_live_extensions_sync_test.cc View 1 chunk +0 lines, -264 lines 0 comments Download
D chrome/test/live_sync/two_client_live_themes_sync_test.cc View 1 chunk +0 lines, -233 lines 0 comments Download
A + chrome/test/live_sync/two_client_themes_sync_test.cc View 10 chunks +30 lines, -18 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Raghu Simha
Fred, please review. Thanks.
9 years, 4 months ago (2011-08-09 04:23:06 UTC) #1
akalin
http://codereview.chromium.org/7599019/diff/7001/chrome/test/live_sync/themes_helper.cc File chrome/test/live_sync/themes_helper.cc (right): http://codereview.chromium.org/7599019/diff/7001/chrome/test/live_sync/themes_helper.cc#newcode34 chrome/test/live_sync/themes_helper.cc:34: sync_extension_helper = new SyncExtensionHelper(); I'm not a big fan ...
9 years, 4 months ago (2011-08-10 03:19:06 UTC) #2
Raghu Simha
Fred, please take another look. Thanks. http://codereview.chromium.org/7599019/diff/7001/chrome/test/live_sync/themes_helper.cc File chrome/test/live_sync/themes_helper.cc (right): http://codereview.chromium.org/7599019/diff/7001/chrome/test/live_sync/themes_helper.cc#newcode34 chrome/test/live_sync/themes_helper.cc:34: sync_extension_helper = new ...
9 years, 4 months ago (2011-08-10 23:57:35 UTC) #3
akalin
LGTM http://codereview.chromium.org/7599019/diff/11031/chrome/test/live_sync/sync_extension_helper.cc File chrome/test/live_sync/sync_extension_helper.cc (left): http://codereview.chromium.org/7599019/diff/11031/chrome/test/live_sync/sync_extension_helper.cc#oldcode92 chrome/test/live_sync/sync_extension_helper.cc:92: const std::string& name) { indent http://codereview.chromium.org/7599019/diff/11031/chrome/test/live_sync/sync_extension_helper.cc#oldcode97 chrome/test/live_sync/sync_extension_helper.cc:97: const ...
9 years, 4 months ago (2011-08-11 00:08:08 UTC) #4
Raghu Simha
9 years, 4 months ago (2011-08-11 00:30:49 UTC) #5
Thanks for the review.

http://codereview.chromium.org/7599019/diff/11031/chrome/test/live_sync/sync_...
File chrome/test/live_sync/sync_extension_helper.cc (left):

http://codereview.chromium.org/7599019/diff/11031/chrome/test/live_sync/sync_...
chrome/test/live_sync/sync_extension_helper.cc:92: const std::string& name) {
On 2011/08/11 00:08:08, akalin wrote:
> indent

Good catch. Done.

http://codereview.chromium.org/7599019/diff/11031/chrome/test/live_sync/sync_...
chrome/test/live_sync/sync_extension_helper.cc:97: const std::string& name) {
On 2011/08/11 00:08:08, akalin wrote:
> indent

Good catch. Done.

Powered by Google App Engine
This is Rietveld 408576698