telemetry: Add RenderingStatsUnitTest.
SmoothnessMetricUnitTest mixes testing of TimelineModel, SmoothnessMetric, and RenderingStats. This patch adds a dedicated unit test for RenderingStats only. It creates a TimelineModel directly, without using TraceEventTimelineImporter (which has its own unit test). RenderingStatsUnitTest verifies that RenderingStats extracts the correct events from the model. This patch also fixes a bug in TimelineModel.FindTimelineMarkers uncovered by the new test. SmoothnessMetricUnitTest itself will be refactored in a separate CL. R=nduca@chromium.org, tonyg@chromium.org BUG=314877 Review URL: https://codereview.chromium.org/59403008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233512 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment