IdentityManager: Relax some constraints on test APIs
Various test APIs around IdentityManager currently DCHECK preconditions when invoked (e.g., clearing the primary account DCHECKs that there is a primary account). However, unittests for GCM that will shortly be converted intentionally stress-test the system in various exceptional ways, e.g., invoking the flow that the primary account was cleared when there is no primary account. To accomodate porting those unittests without having to reduce their coverage, this CL relaxes the constraints on the relevant IdentityManager test APIs. Bug: 798699, 809923 Change-Id: Ibe2db519d0e231ea707ad09b329d6abc6ad7a9d2 Reviewed-on: https://chromium-review.googlesource.com/1149864 Commit-Queue: Colin Blundell <blundell@chromium.org> Reviewed-by:Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/master@{#578615}
Showing
Please register or sign in to comment