You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Merge M71] Initialize test UrlValidityChecker in InstantService and simplify UrlValidityChecker testing
Fix crashes caused by |url_checker_for_testing_| not being initialized
properly.
Additionally, construct UrlValidityChecker with NoDestructor instead of
a global LazyInstance. We prefer to leak singletons to avoid
unnecessary work at shutdown. Also simplify UrlValidityChecker by
passing TickClock, which provides cleaner timeout and duration testing.
Bug: 894742
Change-Id: I468f76e07dc6f551a8515d8416d0c67f5f2035a1
Reviewed-on: https://chromium-review.googlesource.com/c/1277959
Commit-Queue: Kristi Park <[email protected]>
Reviewed-by: Mathieu Perreault <[email protected]>
Cr-Original-Commit-Position: refs/heads/master@{#599377}(cherry picked from commit 8c7eeb6)
Reviewed-on: https://chromium-review.googlesource.com/c/1284063
Reviewed-by: Kristi Park <[email protected]>
Cr-Commit-Position: refs/branch-heads/3578@{#54}
Cr-Branched-From: 4226ddf-refs/heads/master@{#599034}
0 commit comments