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

Issue 2306523003: [Sync] Split fake ModelTypeService impl out of SMTP tests. (Closed)

Created:
4 years, 3 months ago by maxbogue
Modified:
4 years, 3 months ago
Reviewers:
pavely
CC:
chromium-reviews, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, droger+watchlist_chromium.org, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Split fake ModelTypeService impl out of SMTP tests. This class and logic can be re-used for integration testing, so I'm spliting it out into its own file. As a happy side-effect, this massively reduces the size of the SMTP test file. - Current FakeModelTypeService is renamed StubModelTypeService (does nothing; just compiles). - SMTP test impl is moved into FakeModelTypeService (fully functional key/value service using PREFERENCES specifics and an in-memory store.) - Updated some loops to use const auto &kv. BUG=643269 Committed: https://crrev.com/2824d17cd962de7d41bd00ff0318fe44ff4e2871 Cr-Commit-Position: refs/heads/master@{#416691}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase + fix typo in comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+467 lines, -390 lines) Patch
M components/sync/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
M components/sync/api/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync/api/fake_model_type_service.h View 1 2 chunks +100 lines, -4 lines 0 comments Download
M components/sync/api/fake_model_type_service.cc View 1 chunk +266 lines, -15 lines 0 comments Download
M components/sync/api/model_type_service_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/sync/api/stub_model_type_service.h View 3 chunks +7 lines, -7 lines 0 comments Download
A + components/sync/api/stub_model_type_service.cc View 2 chunks +14 lines, -14 lines 0 comments Download
M components/sync/core/shared_model_type_processor_unittest.cc View 36 chunks +62 lines, -337 lines 0 comments Download
M components/sync/core_impl/model_type_connector_proxy_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/sync/driver/non_blocking_data_type_controller_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/sync/driver/non_ui_model_type_controller_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M components/sync/driver/ui_model_type_controller_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
maxbogue
Hey Pavel, PTAL!
4 years, 3 months ago (2016-09-01 20:11:39 UTC) #6
pavely
lgtm https://codereview.chromium.org/2306523003/diff/1/components/sync/api/fake_model_type_service.h File components/sync/api/fake_model_type_service.h (right): https://codereview.chromium.org/2306523003/diff/1/components/sync/api/fake_model_type_service.h#newcode20 components/sync/api/fake_model_type_service.h:20: // A basic, functional implementation of ModelTypeService testing ...
4 years, 3 months ago (2016-09-06 15:04:32 UTC) #7
maxbogue
Thanks Pavel! https://codereview.chromium.org/2306523003/diff/1/components/sync/api/fake_model_type_service.h File components/sync/api/fake_model_type_service.h (right): https://codereview.chromium.org/2306523003/diff/1/components/sync/api/fake_model_type_service.h#newcode20 components/sync/api/fake_model_type_service.h:20: // A basic, functional implementation of ModelTypeService ...
4 years, 3 months ago (2016-09-06 18:44:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2306523003/10001
4 years, 3 months ago (2016-09-06 18:44:27 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:10001)
4 years, 3 months ago (2016-09-06 20:17:18 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 20:19:40 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2824d17cd962de7d41bd00ff0318fe44ff4e2871
Cr-Commit-Position: refs/heads/master@{#416691}

Powered by Google App Engine
This is Rietveld 408576698