|
sync: Add interfaces for per-type sync
Puts the DirectoryCommitContributor and DirectoryUpdateHandler
classes behind interfaces. These classes were always intended
to form the basis of an abstract interface. Now we can start
to introduce alternate implementations of them.
This CL includes one such alternate implementation. It adds
the MockUpdateHandler and uses it to remove some unnecessary
boilerplate from the download unit tests.
This CL also resolves an old TODO. It renames the SyncDirectory*
classes to Directory*, since the 'Sync' part of the name is redundant.
This should have no effect on program behavior.
BUG= 278484
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251969
Total comments: 18
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+461 lines, -1860 lines) |
Patch |
 |
M |
sync/engine/commit.h
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/engine/commit.cc
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A |
sync/engine/commit_contribution.h
|
View
|
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
sync/engine/commit_contribution.cc
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
A |
sync/engine/commit_contributor.h
|
View
|
1
2
3
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
sync/engine/commit_contributor.cc
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/engine/commit_processor.h
|
View
|
1
2
3
4
|
2 chunks |
+10 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/engine/commit_processor.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
sync/engine/directory_commit_contribution.h
|
View
|
1
2
3
4
5
|
6 chunks |
+19 lines, -16 lines |
0 comments
|
Download
|
 |
A + |
sync/engine/directory_commit_contribution.cc
|
View
|
1
2
3
|
7 chunks |
+12 lines, -11 lines |
0 comments
|
Download
|
 |
A + |
sync/engine/directory_commit_contribution_unittest.cc
|
View
|
|
10 chunks |
+21 lines, -21 lines |
0 comments
|
Download
|
 |
A + |
sync/engine/directory_commit_contributor.h
|
View
|
1
2
3
4
5
|
2 chunks |
+14 lines, -10 lines |
0 comments
|
Download
|
 |
A |
sync/engine/directory_commit_contributor.cc
|
View
|
1
2
3
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
sync/engine/directory_update_handler.h
|
View
|
1
2
3
4
5
|
5 chunks |
+18 lines, -17 lines |
0 comments
|
Download
|
 |
A + |
sync/engine/directory_update_handler.cc
|
View
|
|
8 chunks |
+12 lines, -13 lines |
0 comments
|
Download
|
 |
A + |
sync/engine/directory_update_handler_unittest.cc
|
View
|
|
24 chunks |
+36 lines, -36 lines |
0 comments
|
Download
|
 |
M |
sync/engine/download_unittest.cc
|
View
|
|
3 chunks |
+7 lines, -25 lines |
0 comments
|
Download
|
 |
M |
sync/engine/get_updates_delegate.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/engine/get_updates_processor.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/engine/get_updates_processor.cc
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
D |
sync/engine/sync_directory_commit_contribution.h
|
View
|
|
1 chunk |
+0 lines, -102 lines |
0 comments
|
Download
|
 |
D |
sync/engine/sync_directory_commit_contribution.cc
|
View
|
|
1 chunk |
+0 lines, -164 lines |
0 comments
|
Download
|
 |
D |
sync/engine/sync_directory_commit_contribution_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -235 lines |
0 comments
|
Download
|
 |
D |
sync/engine/sync_directory_commit_contributor.h
|
View
|
|
1 chunk |
+0 lines, -41 lines |
0 comments
|
Download
|
 |
D |
sync/engine/sync_directory_commit_contributor.cc
|
View
|
|
1 chunk |
+0 lines, -24 lines |
0 comments
|
Download
|
 |
D |
sync/engine/sync_directory_update_handler.h
|
View
|
|
1 chunk |
+0 lines, -101 lines |
0 comments
|
Download
|
 |
D |
sync/engine/sync_directory_update_handler.cc
|
View
|
|
1 chunk |
+0 lines, -164 lines |
0 comments
|
Download
|
 |
D |
sync/engine/sync_directory_update_handler_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -828 lines |
0 comments
|
Download
|
 |
A |
sync/engine/update_handler.h
|
View
|
1
2
3
|
1 chunk |
+63 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
sync/engine/update_handler.cc
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry.h
|
View
|
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry.cc
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sync/sync_core.gypi
|
View
|
|
4 chunks |
+16 lines, -10 lines |
0 comments
|
Download
|
 |
M |
sync/sync_tests.gypi
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
A |
sync/test/engine/mock_update_handler.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/test/engine/mock_update_handler.cc
|
View
|
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|