| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from core import perf_benchmark | 5 from core import perf_benchmark |
| 6 | 6 |
| 7 import page_sets | 7 import page_sets |
| 8 from telemetry import benchmark | 8 from telemetry import benchmark |
| 9 from telemetry.timeline import chrome_trace_category_filter | 9 from telemetry.timeline import chrome_trace_category_filter |
| 10 from telemetry.web_perf import timeline_based_measurement | 10 from telemetry.web_perf import timeline_based_measurement |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 options = timeline_based_measurement.Options(category_filter) | 35 options = timeline_based_measurement.Options(category_filter) |
| 36 options.SetTimelineBasedMetrics([ | 36 options.SetTimelineBasedMetrics([ |
| 37 'cpuTimeMetric', | 37 'cpuTimeMetric', |
| 38 'webrtcRenderingMetric', | 38 'webrtcRenderingMetric', |
| 39 ]) | 39 ]) |
| 40 return options | 40 return options |
| 41 | 41 |
| 42 def SetExtraBrowserOptions(self, options): | 42 def SetExtraBrowserOptions(self, options): |
| 43 options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream') | 43 options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream') |
| 44 options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream') | 44 options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream') |
| 45 |
| 46 def GetExpectations(self): |
| 47 return page_sets.WebrtcExpectations() |
| OLD | NEW |