|
Allow sync integration tests to operate on multiple datatypes: Preferences + Bookmarks
The sync integration tests currently use a class hierarchy where the test classes for each datatype are subclasses of LiveSyncTest. While this design worked in the past, it allows tests to work with only one datatype at a time, and therefore doesn't allow us to test the interplay between datatypes.
This patch is the first in a series of patches that will move away from an inheritance model to one where test cases can operate on more than one datatype. It updates the Preferences and Bookmarks datatypes to the new model, and contains the following changes:
- LivePreferencesSyncTest no longer inherits from LiveSyncTest, but is renamed to PreferencesHelper, and contains a bunch of static methods that perform various operations related to preferences. Similarly, LiveBookmarksSyncTest becomes BookmarksHelper.
- SingleClientLivePreferencesSyncTest is renamed to SingleClientPreferencesSyncTest, and is a subclass of LiveSyncTest. It uses the methods in PreferencesHelper by including its header file and attaching itself to the helper. Similarly, SingleClientBookmarksSyncTest uses the methods in BookmarksHelper.
- The old helper class BookmarkModelVerifier is now refactored into BookmarksHelper. This eliminates a bunch of wrapper methods that were in LiveBookmarksSyncTest.
- Once more datatype helper classes are refactored out, tests can attach to more than one datatype helper and use all their methods. For example, the class MigrationErrorsTest benefits from this model by being able to use PreferencesHelper and BookmarksHelper.
BUG= 88510
TEST=sync_integration_tests, sync_performance_tests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94437
Total comments: 5
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+4065 lines, -4053 lines) |
Patch |
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
5
|
4 chunks |
+18 lines, -18 lines |
0 comments
|
Download
|
 |
D |
chrome/test/live_sync/bookmark_model_verifier.h
|
View
|
1
2
|
1 chunk |
+0 lines, -146 lines |
0 comments
|
Download
|
 |
D |
chrome/test/live_sync/bookmark_model_verifier.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -388 lines |
0 comments
|
Download
|
 |
A |
chrome/test/live_sync/bookmarks_helper.h
|
View
|
1
2
3
|
1 chunk |
+242 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/live_sync/bookmarks_helper.cc
|
View
|
1
2
3
4
|
1 chunk |
+633 lines, -0 lines |
0 comments
|
Download
|
 |
D |
chrome/test/live_sync/live_bookmarks_sync_test.h
|
View
|
1
2
|
1 chunk |
+0 lines, -234 lines |
0 comments
|
Download
|
 |
D |
chrome/test/live_sync/live_bookmarks_sync_test.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -295 lines |
0 comments
|
Download
|
 |
M |
chrome/test/live_sync/live_preferences_sync_test.cc
|
View
|
1
|
1 chunk |
+0 lines, -211 lines |
0 comments
|
Download
|
 |
M |
chrome/test/live_sync/live_sync_test.h
|
View
|
1
2
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/live_sync/live_sync_test.cc
|
View
|
1
2
3
4
|
4 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/live_sync/many_client_bookmarks_sync_test.cc
|
View
|
1
2
3
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
D |
chrome/test/live_sync/many_client_live_bookmarks_sync_test.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/test/live_sync/many_client_live_preferences_sync_test.cc
|
View
|
1
|
1 chunk |
+0 lines, -16 lines |
0 comments
|
Download
|
 |
A |
chrome/test/live_sync/many_client_preferences_sync_test.cc
|
View
|
1
2
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/live_sync/migration_errors_test.cc
|
View
|
1
2
3
4
|
7 chunks |
+58 lines, -139 lines |
0 comments
|
Download
|
 |
A |
chrome/test/live_sync/multiple_client_bookmarks_sync_test.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
D |
chrome/test/live_sync/multiple_client_live_bookmarks_sync_test.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -19 lines |
0 comments
|
Download
|
 |
M |
chrome/test/live_sync/multiple_client_live_preferences_sync_test.cc
|
View
|
1
|
1 chunk |
+0 lines, -23 lines |
0 comments
|
Download
|
 |
A |
chrome/test/live_sync/multiple_client_preferences_sync_test.cc
|
View
|
1
2
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/live_sync/performance/bookmarks_sync_perf_test.cc
|
View
|
1
2
3
4
5
|
8 chunks |
+37 lines, -26 lines |
0 comments
|
Download
|
 |
A |
chrome/test/live_sync/preferences_helper.h
|
View
|
1
2
|
1 chunk |
+117 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/live_sync/preferences_helper.cc
|
View
|
1
2
|
3 chunks |
+81 lines, -69 lines |
0 comments
|
Download
|
 |
A |
chrome/test/live_sync/single_client_bookmarks_sync_test.cc
|
View
|
1
2
3
|
1 chunk |
+145 lines, -0 lines |
0 comments
|
Download
|
 |
D |
chrome/test/live_sync/single_client_live_bookmarks_sync_test.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -129 lines |
0 comments
|
Download
|
 |
M |
chrome/test/live_sync/single_client_live_preferences_sync_test.cc
|
View
|
1
|
1 chunk |
+0 lines, -16 lines |
0 comments
|
Download
|
 |
A |
chrome/test/live_sync/single_client_preferences_sync_test.cc
|
View
|
1
2
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/live_sync/sync_datatype_helper.h
|
View
|
1
2
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/live_sync/sync_datatype_helper.cc
|
View
|
1
2
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/live_sync/two_client_bookmarks_sync_test.cc
|
View
|
1
2
3
4
|
1 chunk |
+1848 lines, -0 lines |
0 comments
|
Download
|
 |
D |
chrome/test/live_sync/two_client_live_bookmarks_sync_test.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -1717 lines |
0 comments
|
Download
|
 |
M |
chrome/test/live_sync/two_client_live_preferences_sync_test.cc
|
View
|
1
|
1 chunk |
+0 lines, -592 lines |
0 comments
|
Download
|
 |
A |
chrome/test/live_sync/two_client_preferences_sync_test.cc
|
View
|
1
2
|
1 chunk |
+658 lines, -0 lines |
0 comments
|
Download
|
Total messages: 13 (0 generated)
|