brave-browser#61055 Test best-practice violations in brave_vpn_menu_model_unittest.cc
State: closed (completed) · created · closed · updated · discovered via linked:brave/brave-core#41583
tests QA/No release-notes/exclude OS/Desktop tests/test-quality tests/best-practice-violation
Unit tests in browser/ui/toolbar/brave_vpn_menu_model_unittest.cc break test best practices documented in docs/best-practices. BraveVPNMenuModelUnitTest.TrayIconEnabled, BraveVPNMenuModelUnitTest.ToolbarVPNButton (medium severity) L122 - Rule: TI-034: Use ASSERT for Preconditions That Subsequent Code Depends On - Problem: ToolbarVPNButton (and the Windows-only TrayIconEnabled) check the menu item index with EXPECT_TRUE and then call .value() on the same optional. If the…
Timeline (6 of 9 events)
- 2026-11-05 14:18 Label added
QA/Noby netzenbot - 2026-11-05 14:18 Label added
release-notes/excludeby netzenbot - 2026-11-12 13:08 Referenced by brave-core#41583 by netzenbot
- 2026-11-13 03:52 Closed
completedbrave-core#41583 by brian-brave - 2026-11-13 03:52 Milestone set
1.102.x - Nightlyby brave-builds - 2026-11-23 16:39 Label added
OS/Desktopby netzenbot