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

Issue 8625005: [Sync] Make ModelSafeWorker a true interface (Closed)

Created:
9 years, 1 month ago by akalin
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

[Sync] Make ModelSafeWorker a true interface Make PassiveModelWorker class. Make FakeModelWorker class and make tests use it. Also make some tests use realistic groups instead of shunting everything to GROUP_PASSIVE. Rename MockModelSafeWorkerRegistrar to FakeModelSafeWorkerRegistrar. This will make it easier to test an upcoming change that makes ModelChangingSyncerCommand post on only the threads it needs to. BUG=97832 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111131

Patch Set 1 #

Patch Set 2 : Use non-thread-safe #

Patch Set 3 : Fix deps, integration tests #

Patch Set 4 : Sync to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -198 lines) Patch
M chrome/browser/sync/engine/apply_updates_command_unittest.cc View 9 chunks +31 lines, -13 lines 0 comments Download
M chrome/browser/sync/engine/download_updates_command_unittest.cc View 3 chunks +13 lines, -23 lines 0 comments Download
D chrome/browser/sync/engine/mock_model_safe_workers.h View 1 chunk +0 lines, -52 lines 0 comments Download
D chrome/browser/sync/engine/mock_model_safe_workers.cc View 1 chunk +0 lines, -58 lines 0 comments Download
M chrome/browser/sync/engine/model_safe_worker.h View 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/sync/engine/model_safe_worker.cc View 1 chunk +0 lines, -12 lines 0 comments Download
A chrome/browser/sync/engine/passive_model_worker.h View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/sync/engine/passive_model_worker.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/process_commit_response_command_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/sync/engine/sync_scheduler_unittest.cc View 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/sync/engine/sync_scheduler_whitebox_unittest.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/sync/engine/syncer_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/engine/verify_updates_command_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/glue/browser_thread_model_worker.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_registrar.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/sessions/sync_session_unittest.cc View 4 chunks +7 lines, -7 lines 0 comments Download
A chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.h View 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.cc View 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/engine/fake_model_worker.h View 1 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/engine/fake_model_worker.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
akalin
+zea for review
9 years, 1 month ago (2011-11-22 00:09:10 UTC) #1
tim (not reviewing)
pullin' a tim steal LGTM
9 years, 1 month ago (2011-11-22 00:26:41 UTC) #2
akalin
On 2011/11/22 00:26:41, timsteele wrote: > pullin' a tim steal > > LGTM Fixed deps, ...
9 years, 1 month ago (2011-11-22 02:23:01 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/8625005/9001
9 years, 1 month ago (2011-11-22 10:34:31 UTC) #4
commit-bot: I haz the power
9 years, 1 month ago (2011-11-22 11:38:32 UTC) #5
Change committed as 111131

Powered by Google App Engine
This is Rietveld 408576698