|
|
Refactor sync passphrase setup flow and fix passphrase tests
The passphrase sync integration tests are in a state of disrepair due to
several recent changes to the sync implementation. In particular,
passphrase sync uses two similar methods called OnPassphraseRequired
and OnPassphraseFailed to differentiate between cases where a passphrase is
required for a first attempt at decryption and cases where decryption with a
cached passphrase failed and the user needs to be prompted.
This patch refactors the "for_decryption" boolean flag into an enum called
PassphraseRequiredReason, thereby eliminating the need for OnPassphraseFailed.
It also fixes the tests and updates the test framework to account for
scenarios in which a client is waiting for a passphrase that has been
set by one of its partners, and enables it to exit early when forward
progress is impossible without a call to SetPassphrase.
BUG= 78840, 80180, 81018
TEST=sync_integration_tests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83764
Total comments: 4
Total comments: 8
Total comments: 14
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+241 lines, -165 lines) |
Patch |
 |
M |
chrome/browser/resources/sync_internals/chrome_sync.js
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/sync_internals/sync_log.js
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/syncapi.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+26 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/syncapi.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+22 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/syncapi_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host.h
|
View
|
1
2
3
|
4 chunks |
+11 lines, -18 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+10 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/js_sync_manager_observer.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/js_sync_manager_observer.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/js_sync_manager_observer_unittest.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+32 lines, -13 lines |
4 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+10 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
12 chunks |
+36 lines, -26 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_harness.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_harness.cc
|
View
|
1
2
3
4
5
6
7
8
|
8 chunks |
+46 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/sync_setup_wizard_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/sync_ui_util.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test_profile_sync_service.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/live_sync/live_passwords_sync_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/live_sync/single_client_live_passwords_sync_test.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/test/live_sync/two_client_live_passwords_sync_test.cc
|
View
|
|
7 chunks |
+11 lines, -13 lines |
0 comments
|
Download
|
Total messages: 21 (0 generated)
|