|
[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
Total comments: 9
|
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
|
Total messages: 12 (0 generated)
|