Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Issue 2728783003: Fix NavigationHandleImplBrowserTest flakiness. (Closed)

Created:
3 years, 9 months ago by carlosk
Modified:
3 years, 9 months ago
Reviewers:
clamy
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -48 lines) Patch
M content/browser/frame_host/navigation_handle_impl_browsertest.cc View 9 chunks +26 lines, -48 lines 0 comments Download

Messages

Total messages: 14 (10 generated)
carlosk
clamy@: PTAL.
3 years, 9 months ago (2017-03-02 00:11:36 UTC) #6
clamy
Thanks for the cleanup! Lgtm.
3 years, 9 months ago (2017-03-02 13:36:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2728783003/1
3 years, 9 months ago (2017-03-02 18:36:37 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 18:45:19 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/87331d860f547f0a5b5df862b77e...

Powered by Google App Engine
This is Rietveld 408576698