[fixit] Disallow TestSyncService::SetDisableReasons({..._NOT_SIGNED_IN})
Test-only change. Setting the account state should be done via
SetSignedIn*() or SetSignedOut(), which leave the fake in a consistent
state. Replace the general SetDisableReasons() with specific setters
for DISABLE_REASON_ENTERPRISE_POLICY and
DISABLE_REASON_UNRECOVERABLE_ERROR (there is no setter for
DISABLE_REASON_NOT_SIGNED_IN).
Bug: 348605115
Change-Id: I11c3b4c1e0b7d083b13f361ec1003e855c281cf4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5666786
Commit-Queue: Colin Blundell <blundell@chromium.org>
Commit-Queue: Victor Vianna <victorvianna@google.com>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Reviewed-by: Marc Treib <treib@chromium.org>
Auto-Submit: Victor Vianna <victorvianna@google.com>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1321606}
NOKEYCHECK=True
GitOrigin-RevId: f90b981ea93e9d711dc7c04332b8d7aa60ba6c14
1 file changed