Allow FakeO2TSDelegate::UpdateAuthError() to take in transient errors

This CL extends FakeO2TSDelegate to support taking in transient errors
and dropping them; before, it would just update the auth error, which
violates the contract of O2TS::GetAuthError() and results in a DCHECK
failing inside that class.

This better reflects production behavior (e.g., of MutablePO2TSDelegate)
and allows an upcoming CL to test proper behavior in the event of a
transient error occurring.

Bug: 882861
Change-Id: Icbf2020b1b7fd9a0992e0b17fd74fc9b3f0eaf42
Reviewed-on: https://chromium-review.googlesource.com/c/1268017
Reviewed-by: David Roger <droger@chromium.org>
Commit-Queue: Colin Blundell <blundell@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#597553}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b61bd93da1ad238f66d1ed9fd769fc6a601a69c4
1 file changed