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

Issue 330523002: sync: Refactor NonBlockingTypeProcessorCore tests (Closed)

Created:
6 years, 6 months ago by rlarocque
Modified:
6 years, 6 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

sync: Refactor NonBlockingTypeProcessorCore tests Pulls MockNonBlockingTypeProcessor and SimpleMockServer classes out of the NonBlockingTypeProcessorCore's test harness. These two new mock classes are currently used in only one place, though it's probable that they'll be reused elsewhere sooner or later. Even if no code is reused, this change is worthwhile because it leads to better separation of responsibilities and improved documentation. This is one of serveral follow-ups to the commits that introduced NonBlockingTypeProcessor and NonBlockingTypeProcessorCore. BUG=351005 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278114

Patch Set 1 #

Total comments: 15

Patch Set 2 : Rebase #

Patch Set 3 : Review fixes #

Patch Set 4 : Rename #

Patch Set 5 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+746 lines, -435 lines) Patch
M sync/engine/non_blocking_type_processor_core_unittest.cc View 1 2 3 4 15 chunks +74 lines, -431 lines 0 comments Download
M sync/engine/non_blocking_type_processor_interface.h View 1 chunk +1 line, -4 lines 0 comments Download
M sync/sync_tests.gypi View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A sync/test/engine/mock_non_blocking_type_processor.h View 1 2 1 chunk +136 lines, -0 lines 0 comments Download
A sync/test/engine/mock_non_blocking_type_processor.cc View 1 2 3 4 1 chunk +258 lines, -0 lines 0 comments Download
A sync/test/engine/single_type_mock_server.h View 1 2 3 1 chunk +94 lines, -0 lines 0 comments Download
A sync/test/engine/single_type_mock_server.cc View 1 2 3 1 chunk +179 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
rlarocque
Here's part two of the test refactoring. I think these changes are independent from the ...
6 years, 6 months ago (2014-06-11 20:59:26 UTC) #1
Nicolas Zea
https://codereview.chromium.org/330523002/diff/1/sync/test/engine/mock_non_blocking_type_processor.cc File sync/test/engine/mock_non_blocking_type_processor.cc (right): https://codereview.chromium.org/330523002/diff/1/sync/test/engine/mock_non_blocking_type_processor.cc#newcode22 sync/test/engine/mock_non_blocking_type_processor.cc:22: base::Unretained(this), Now that this is a standalone class, it's ...
6 years, 6 months ago (2014-06-13 21:59:43 UTC) #2
rlarocque
Here's the first round of fixes. PTAL. https://codereview.chromium.org/330523002/diff/1/sync/test/engine/mock_non_blocking_type_processor.cc File sync/test/engine/mock_non_blocking_type_processor.cc (right): https://codereview.chromium.org/330523002/diff/1/sync/test/engine/mock_non_blocking_type_processor.cc#newcode22 sync/test/engine/mock_non_blocking_type_processor.cc:22: base::Unretained(this), On ...
6 years, 6 months ago (2014-06-14 00:55:19 UTC) #3
Nicolas Zea
LGTM with the naming change https://codereview.chromium.org/330523002/diff/1/sync/test/engine/simple_mock_server.h File sync/test/engine/simple_mock_server.h (right): https://codereview.chromium.org/330523002/diff/1/sync/test/engine/simple_mock_server.h#newcode18 sync/test/engine/simple_mock_server.h:18: class SimpleMockServer { On ...
6 years, 6 months ago (2014-06-16 21:12:58 UTC) #4
rlarocque
Renamed and rebased. Will send to the CQ.
6 years, 6 months ago (2014-06-16 21:45:06 UTC) #5
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 6 months ago (2014-06-16 21:45:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/330523002/60001
6 years, 6 months ago (2014-06-16 21:48:32 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-17 06:58:52 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_dbg_simulator/builds/161892)
6 years, 6 months ago (2014-06-17 06:58:53 UTC) #9
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 6 months ago (2014-06-17 17:32:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/330523002/80001
6 years, 6 months ago (2014-06-17 17:34:27 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-18 01:03:36 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/28259)
6 years, 6 months ago (2014-06-18 01:03:37 UTC) #13
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 6 months ago (2014-06-18 17:39:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/330523002/80001
6 years, 6 months ago (2014-06-18 17:41:32 UTC) #15
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 17:43:17 UTC) #16
Message was sent while issue was closed.
Change committed as 278114

Powered by Google App Engine
This is Rietveld 408576698