Fix DCHECK crash in PageInfoBubbleViewTest
This fixes a flaky test crash in PageInfoBubbleViewTest where content::BrowserSideNavigationSetUp() was called but we weren't calling the corresponding content::BrowserSideNavigationTearDown(). This can cause a DCHECK to trigger [1] under certain orderings of test invocations. The flakiness isn't bad enough to be problematic yet [2] (especially since it only triggers on Debug bots), but it's better to preemptively fix it. [1] https://cs.chromium.org/chromium/src/content/browser/loader/navigation_url_loader.cc?l=55&rcl=42b97a68450fe6fb772120b6767d5687af3a52df [2] https://test-results.appspot.com/dashboards/flakiness_dashboard.html#testType=unit_tests&tests=PageInfoBubbleViewTest All other callers of content::BrowserSideNavigationSetUp() correctly call the TearDown() function during test fixture tear down. To reproduce the flaky crash, you can run: unit_tests --gtest_filter="PageInfoBubbleViewTest.*" --gtest_shuffle \ --gtest_repeat=-1 This can also be used to verify that the crash no longer triggers with this CL. Change-Id: I031e3de8a4b46bb58fcb20d752a83289f1372bc5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1885077Reviewed-by:Mustafa Emre Acer <meacer@chromium.org> Commit-Queue: Christopher Thompson <cthomp@chromium.org> Cr-Commit-Position: refs/heads/master@{#710048}
Showing
Please register or sign in to comment