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

Issue 10701046: sync: Remove SyncManager::TestingMode in favour of InternalComponentsFactory. (Closed)

Created:
8 years, 5 months ago by tim (not reviewing)
Modified:
8 years, 5 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews
Visibility:
Public.

Description

sync: Remove SyncManager::TestingMode in favour of InternalComponentsFactory. Turns SyncScheduler into an interface and adds a FakeSyncScheduler class for tests. BUG=117836 TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=147553

Patch Set 1 #

Patch Set 2 : test #

Total comments: 24

Patch Set 3 : rebase + review #

Patch Set 4 : make SyncScheduler an interface #

Patch Set 5 : fix #

Patch Set 6 : remove SetSchedulerForTest #

Total comments: 3

Patch Set 7 : now with more scope #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+765 lines, -1933 lines) Patch
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 6 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 2 2 chunks +12 lines, -3 lines 0 comments Download
M sync/engine/sync_scheduler.h View 1 2 3 4 5 6 3 chunks +15 lines, -327 lines 0 comments Download
M sync/engine/sync_scheduler.cc View 1 2 3 4 1 chunk +2 lines, -1194 lines 0 comments Download
A + sync/engine/sync_scheduler_impl.h View 1 2 3 4 5 6 8 chunks +36 lines, -107 lines 0 comments Download
A + sync/engine/sync_scheduler_impl.cc View 1 2 3 4 42 chunks +88 lines, -83 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 1 2 3 7 chunks +17 lines, -15 lines 0 comments Download
M sync/engine/sync_scheduler_whitebox_unittest.cc View 1 2 3 13 chunks +53 lines, -52 lines 0 comments Download
M sync/engine/syncer_unittest.cc View 1 2 3 3 chunks +6 lines, -5 lines 0 comments Download
A sync/internal_api/internal_components_factory_impl.cc View 1 2 3 4 5 6 1 chunk +47 lines, -0 lines 0 comments Download
A sync/internal_api/public/internal_components_factory.h View 1 2 3 4 5 6 1 chunk +65 lines, -0 lines 0 comments Download
A sync/internal_api/public/internal_components_factory_impl.h View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
M sync/internal_api/public/sync_manager.h View 1 2 4 chunks +3 lines, -8 lines 0 comments Download
M sync/internal_api/public/test/fake_sync_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
A sync/internal_api/public/test/test_internal_components_factory.h View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 2 3 4 5 2 chunks +1 line, -6 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 3 4 5 6 25 chunks +55 lines, -107 lines 0 comments Download
M sync/internal_api/syncapi_unittest.cc View 1 2 3 4 5 6 6 chunks +40 lines, -15 lines 0 comments Download
M sync/internal_api/test/fake_sync_manager.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
A sync/internal_api/test/test_internal_components_factory.cc View 1 2 3 4 5 6 1 chunk +59 lines, -0 lines 3 comments Download
M sync/sync.gyp View 1 2 3 5 chunks +9 lines, -0 lines 0 comments Download
A sync/test/engine/fake_sync_scheduler.h View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download
A sync/test/engine/fake_sync_scheduler.cc View 1 2 3 1 chunk +81 lines, -0 lines 0 comments Download
M sync/tools/sync_client.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
tim (not reviewing)
8 years, 5 months ago (2012-07-18 20:34:46 UTC) #1
tim (not reviewing)
Actually, I might as well rebase this before you review since there are a bunch ...
8 years, 5 months ago (2012-07-18 20:46:39 UTC) #2
Nicolas Zea
Some initial comments http://codereview.chromium.org/10701046/diff/3018/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/10701046/diff/3018/chrome/browser/sync/glue/sync_backend_host.cc#newcode412 chrome/browser/sync/glue/sync_backend_host.cc:412: new InternalComponentsFactoryImpl(), does it make more ...
8 years, 5 months ago (2012-07-18 21:10:12 UTC) #3
tim (not reviewing)
I'll work on making SyncScheduler an interface, addressed other comments. http://codereview.chromium.org/10701046/diff/3018/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/10701046/diff/3018/chrome/browser/sync/glue/sync_backend_host.cc#newcode412 ...
8 years, 5 months ago (2012-07-18 21:57:47 UTC) #4
tim (not reviewing)
Added the interface, also removed SetSchedulerForTest from SyncManager, and created a special InternalComponentsFactory subclass in ...
8 years, 5 months ago (2012-07-19 03:17:14 UTC) #5
Nicolas Zea
http://codereview.chromium.org/10701046/diff/6022/sync/engine/sync_scheduler.h File sync/engine/sync_scheduler.h (right): http://codereview.chromium.org/10701046/diff/6022/sync/engine/sync_scheduler.h#newcode14 sync/engine/sync_scheduler.h:14: #include "base/memory/linked_ptr.h" nit: most of these can be removed ...
8 years, 5 months ago (2012-07-19 18:01:51 UTC) #6
tim (not reviewing)
Addressed all comments! PTAL.
8 years, 5 months ago (2012-07-19 19:44:05 UTC) #7
Nicolas Zea
LGTM! http://codereview.chromium.org/10701046/diff/9003/sync/internal_api/test/test_internal_components_factory.cc File sync/internal_api/test/test_internal_components_factory.cc (right): http://codereview.chromium.org/10701046/diff/9003/sync/internal_api/test/test_internal_components_factory.cc#newcode41 sync/internal_api/test/test_internal_components_factory.cc:41: new sessions::SyncSessionContext(connection_manager, directory, nit: I think style guide ...
8 years, 5 months ago (2012-07-19 19:51:41 UTC) #8
tim (not reviewing)
Thanks for the review! http://codereview.chromium.org/10701046/diff/9003/sync/internal_api/test/test_internal_components_factory.cc File sync/internal_api/test/test_internal_components_factory.cc (right): http://codereview.chromium.org/10701046/diff/9003/sync/internal_api/test/test_internal_components_factory.cc#newcode41 sync/internal_api/test/test_internal_components_factory.cc:41: new sessions::SyncSessionContext(connection_manager, directory, On 2012/07/19 ...
8 years, 5 months ago (2012-07-19 20:40:30 UTC) #9
Nicolas Zea
http://codereview.chromium.org/10701046/diff/9003/sync/internal_api/test/test_internal_components_factory.cc File sync/internal_api/test/test_internal_components_factory.cc (right): http://codereview.chromium.org/10701046/diff/9003/sync/internal_api/test/test_internal_components_factory.cc#newcode41 sync/internal_api/test/test_internal_components_factory.cc:41: new sessions::SyncSessionContext(connection_manager, directory, On 2012/07/19 20:40:30, timsteele wrote: > ...
8 years, 5 months ago (2012-07-19 20:42:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/10701046/9003
8 years, 5 months ago (2012-07-19 20:44:15 UTC) #11
commit-bot: I haz the power
Try job failure for 10701046-9003 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-19 21:55:47 UTC) #12
commit-bot: I haz the power
8 years, 5 months ago (2012-07-19 22:08:23 UTC) #13

Powered by Google App Engine
This is Rietveld 408576698