Descriptiontelemetry: 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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233512
Patch Set 1 #Patch Set 2 : Changed 'label' to 'name' in FindTimelineMarkers. #Patch Set 3 : Rebase. #
Messages
Total messages: 4 (0 generated)
|