New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 643393 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Create test hook for IsMetricsAndCrashReportingEnabled()

Project Member Reported by nparker@chromium.org, Sep 1 2016

Issue description

Make a test hook so we can mock the return code of ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled().

Otherwise, tests are forced to set the kMetricsReportingEnabled pref, which delves into the implementation details and may not work on all platforms. Replace usage of that pref in tests with the new hook.

 
Status: Fixed (was: Assigned)

Sign in to add a comment