forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Sync] Test SCF control states and a regression
Four new tests for SyncCustomizationFragment: - SCF state is correct starting from sync on and transitioning to off. - SCF state is correct starting from sync off and transitioning to on. - SCF's data type controls respond correctly to the sync everything switch. - SCF opening and closing does not start sync. In order to prevent flakiness, this CL makes some additional changes. - Remove MockAccountManager.postAsyncAccountChangedEvent(). Justification: we have no control about when Android performs the callback from it. The callback coming in at weird points during other test cases was making tests flaky. Testing mechanisms should be predictable. - SCF now caches the backend initialized state in order to filter syncStateChanged() calls down to only changes to that state. BUG=480604 Review URL: https://codereview.chromium.org/1118833002 Cr-Commit-Position: refs/heads/master@{#329740}
- Loading branch information
maxbogue
authored and
Commit bot
committed
May 13, 2015
1 parent
71b7554
commit a465d93
Showing
4 changed files
with
228 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters