Open Bug 1628509 Opened 4 years ago Updated 2 years ago

GTest code has redundant pref setting implementations

Categories

(Testing :: GTest, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: jbauman, Unassigned)

Details

To facilitate testing a behaviour which isn't available with the default value of a pref, it's sometimes necessary to change the pref value with mozilla::Preferences for an individual test or an entire fixture.

There are currently several redundant implementations of this pattern. It would be preferable to have a shared implementation (perhaps under testing/gtest). Once that's in place, https://wiki.developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/GTest#Setting_prefs_for_a_test should be updated to reference it.

Component: General → GTest
Product: Core → Testing
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.