|
|
[sync] Eliminate Await*SyncCompletion methods in integration tests
For the longest time, the sync integration tests have relied on methods
that wait for sync cycle completion by polling various internal fields
in the sync session snapshot. These methods are brittle and rely on
internal state, which is not ideal.
This cl is a first step towards eliminating the use of internal state to
detect sync completion. It does the following:
1) Removes the methods IsDataSynced, IsFullySynced, IsDataSyncedImpl,
AwaitDataSyncCompletion and AwaitFullSyncCompletion
2) Adds a method AwaitSyncSetupCompletion which waits until a client is
ready to push local changes to the server.
3) Adds a method AwaitCommitActivityCompletion which waits until a client
no longer has data to commit and its progress markers are updated.
4) Updates call sites to use the new methods.
BUG= 94990, 97780, 323380
TEST=sync_integration_tests
R=rlarocque@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247599
Total comments: 6
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+136 lines, -267 lines) |
Patch |
 |
M |
chrome/browser/sync/test/integration/cross_platform_sync_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/migration_test.cc
|
View
|
1
|
3 chunks |
+8 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/performance/sync_timing_helper.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/profile_sync_service_harness.h
|
View
|
1
2
|
5 chunks |
+11 lines, -31 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/profile_sync_service_harness.cc
|
View
|
1
2
|
20 chunks |
+51 lines, -160 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/single_client_apps_sync_test.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/single_client_bookmarks_sync_test.cc
|
View
|
|
7 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/single_client_dictionary_sync_test.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/single_client_extensions_sync_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/single_client_passwords_sync_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/single_client_preferences_sync_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/single_client_search_engines_sync_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/single_client_themes_sync_test.cc
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/single_client_typed_urls_sync_test.cc
|
View
|
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/sync_auth_test.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/sync_errors_test.cc
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/two_client_apps_sync_test.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/two_client_bookmarks_sync_test.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/two_client_dictionary_sync_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/two_client_extensions_sync_test.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc
|
View
|
|
6 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/two_client_search_engines_sync_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/two_client_themes_sync_test.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/two_client_typed_urls_sync_test.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|