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

Issue 10827133: [Sync] Rework unit tests for ChromeInvalidationClient (Closed)

Created:
8 years, 4 months ago by akalin
Modified:
8 years, 4 months ago
Reviewers:
rlarocque, Nicolas Zea
CC:
chromium-reviews, dcheng
Visibility:
Public.

Description

[Sync] Rework unit tests for ChromeInvalidationClient In particular, add unit tests that would have caught bug 139424. Dep-inject InvalidationClient into ChromeInvalidationClient. Use the function name 'UpdateRegisteredIds' consistently. Replace some mocks with fakes. BUG=139424 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150665

Patch Set 1 #

Patch Set 2 : Sync to head #

Total comments: 9

Patch Set 3 : sync to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+803 lines, -317 lines) Patch
M sync/notifier/chrome_invalidation_client.h View 5 chunks +14 lines, -4 lines 0 comments Download
M sync/notifier/chrome_invalidation_client.cc View 12 chunks +22 lines, -5 lines 0 comments Download
M sync/notifier/chrome_invalidation_client_unittest.cc View 1 chunk +636 lines, -237 lines 0 comments Download
A sync/notifier/fake_invalidation_state_tracker.h View 1 chunk +39 lines, -0 lines 0 comments Download
A sync/notifier/fake_invalidation_state_tracker.cc View 1 chunk +47 lines, -0 lines 0 comments Download
M sync/notifier/invalidation_notifier.cc View 3 chunks +6 lines, -1 line 0 comments Download
M sync/notifier/invalidation_notifier_unittest.cc View 5 chunks +21 lines, -11 lines 0 comments Download
D sync/notifier/mock_invalidation_state_tracker.h View 1 chunk +0 lines, -29 lines 0 comments Download
D sync/notifier/mock_invalidation_state_tracker.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M sync/notifier/registration_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/notifier/registration_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/notifier/registration_manager_unittest.cc View 8 chunks +14 lines, -14 lines 0 comments Download
M sync/sync.gyp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
akalin
+rlarocque for review
8 years, 4 months ago (2012-08-02 06:52:32 UTC) #1
akalin
+dcheng fyi
8 years, 4 months ago (2012-08-02 06:57:29 UTC) #2
akalin
On 2012/08/02 06:57:29, akalin wrote: > +dcheng fyi ping!
8 years, 4 months ago (2012-08-03 17:20:49 UTC) #3
akalin
On 2012/08/03 17:20:49, akalin wrote: > On 2012/08/02 06:57:29, akalin wrote: > > +dcheng fyi ...
8 years, 4 months ago (2012-08-06 18:02:58 UTC) #4
akalin
+zea since richard is on vacay
8 years, 4 months ago (2012-08-07 00:49:46 UTC) #5
Nicolas Zea
Richard is back, giving it back to him since he's more familiar with the bug.
8 years, 4 months ago (2012-08-07 17:16:34 UTC) #6
rlarocque
Sorry this took so long. I forgot to setup my vacation auto-responder, which probably would ...
8 years, 4 months ago (2012-08-07 18:21:48 UTC) #7
akalin
http://codereview.chromium.org/10827133/diff/2001/sync/notifier/chrome_invalidation_client.h File sync/notifier/chrome_invalidation_client.h (right): http://codereview.chromium.org/10827133/diff/2001/sync/notifier/chrome_invalidation_client.h#newcode53 sync/notifier/chrome_invalidation_client.h:53: invalidation::InvalidationListener*)> CreateInvalidationClientCallback; On 2012/08/07 18:21:48, rlarocque wrote: > I'm ...
8 years, 4 months ago (2012-08-08 22:46:35 UTC) #8
rlarocque
LGTM. http://codereview.chromium.org/10827133/diff/2001/sync/notifier/chrome_invalidation_client.h File sync/notifier/chrome_invalidation_client.h (right): http://codereview.chromium.org/10827133/diff/2001/sync/notifier/chrome_invalidation_client.h#newcode53 sync/notifier/chrome_invalidation_client.h:53: invalidation::InvalidationListener*)> CreateInvalidationClientCallback; On 2012/08/08 22:46:35, akalin wrote: > ...
8 years, 4 months ago (2012-08-08 23:22:56 UTC) #9
akalin
On 2012/08/08 23:22:56, rlarocque wrote: > I agree that dependency injection is generally better. However, ...
8 years, 4 months ago (2012-08-08 23:27:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10827133/15
8 years, 4 months ago (2012-08-08 23:27:50 UTC) #11
commit-bot: I haz the power
8 years, 4 months ago (2012-08-09 01:11:36 UTC) #12
Change committed as 150665

Powered by Google App Engine
This is Rietveld 408576698