OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 """A simple PageMeasurement used by page/record_wpr.py's unit tests.""" |
| 6 |
5 from telemetry.page import page_measurement | 7 from telemetry.page import page_measurement |
6 | 8 |
7 class NoOp(page_measurement.PageMeasurement): | 9 class MockPageMeasurementTwo(page_measurement.PageMeasurement): |
8 def __init__(self): | 10 def __init__(self): |
9 super(NoOp, self).__init__('RunNoOp') | 11 super(MockPageMeasurementTwo, self).__init__(action_name_to_run="RunBar") |
10 | 12 |
11 def MeasurePage(self, page, tab, results): | 13 def MeasurePage(self, page, tab, results): |
12 pass | 14 pass |
OLD | NEW |