Chromium Code Reviews
DescriptionFix NavigationHandleImplBrowserTest flakiness.
NavigationHandleImplBrowserTest.VerifyRequestContextTypeForFrameTree has been
flaky because it relied on pointer comparisons for checking that new throttles
were being properly created for each new navigation. This is an unsafe solution
and has already caused problems in the past as it's not uncommon that new
instances of the same type of object are created at precisely the same memory
address. This is especially the case on Windows, where this test has been flaky.
This change uses a throttle-install-counter instead that works just as well for
(indirectly) checking that new throttles were installed without the pointer
comparison drawbacks. It also re-enables that test on Windows.
Moreover it moves class member default initializations to be inline with their
declarations to simplify the code and cut back on line count.
BUG=696915
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Review-Url: https://codereview.chromium.org/2728783003
Cr-Commit-Position: refs/heads/master@{#454318}
Committed: https://chromium.googlesource.com/chromium/src/+/87331d860f547f0a5b5df862b77e7a353ea2724e
Patch Set 1 #
Messages
Total messages: 14 (10 generated)
|
|||||||||||||||||||