Develop IdentityManager::Observer equivalent to GCMS::Observer::OnGaiaCookieDeletedByUserAction
This method introduces an IdentityManager::Observer callback, namely OnAccountsCookieDeletedByUserAction(), equivalent to the existing GaiaCookieManagerService::Observer::OnGaiaCookieDeletedByUserAction. In order to unit test, FakeCookieManager and CustomTestSigninClient classes where introduced, so the the code path that triggers the call to GCMS::Observer::OnGaiaCookieDeletedByUserAction gets executed. Particularly about FakeCookieManager, it inherits from network::mojom::CookieManager which is a pure virtual class, and needed all its methods but one to be overridden / stubbed out. The method from FakeCookieManager that needed a real (although simple) implementation was AddCookieChangeListener(). BUG=926890 Change-Id: Icc1124eded616a8c31efc58c9e1950f08363c3b3 Reviewed-on: https://chromium-review.googlesource.com/c/1452816 Commit-Queue: Antonio Gomes <tonikitoo@igalia.com> Reviewed-by:David Roger <droger@chromium.org> Reviewed-by:
Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/master@{#629139}
Showing
Please register or sign in to comment