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 """Measurement smoke test to make sure that no new action_name_to_run is | 4 """Measurement smoke test to make sure that no new action_name_to_run is |
5 defined.""" | 5 defined.""" |
6 | 6 |
| 7 import logging |
| 8 import optparse |
7 import os | 9 import os |
8 import optparse | |
9 import logging | |
10 import unittest | 10 import unittest |
11 | 11 |
12 from telemetry import benchmark as benchmark_module | 12 from telemetry import benchmark as benchmark_module |
13 from telemetry.core import discover | 13 from telemetry.core import discover |
14 from telemetry.page import page_test | 14 from telemetry.page import page_test |
15 from telemetry.unittest_util import options_for_unittests | 15 from telemetry.unittest_util import options_for_unittests |
16 from telemetry.util import classes | 16 from telemetry.util import classes |
17 from telemetry.web_perf import timeline_based_measurement | 17 from telemetry.web_perf import timeline_based_measurement |
18 | 18 |
19 | 19 |
(...skipping 30 matching lines...) Expand all Loading... |
50 if not isinstance(pt, timeline_based_measurement.TimelineBasedMeasurement): | 50 if not isinstance(pt, timeline_based_measurement.TimelineBasedMeasurement): |
51 page_test_instances.append(pt) | 51 page_test_instances.append(pt) |
52 | 52 |
53 return page_test_instances | 53 return page_test_instances |
54 | 54 |
55 | 55 |
56 class MeasurementSmokeTest(unittest.TestCase): | 56 class MeasurementSmokeTest(unittest.TestCase): |
57 # Simple smoke test to make sure that all page_test are constructible. | 57 # Simple smoke test to make sure that all page_test are constructible. |
58 def testAllMeasurementInstance(self): | 58 def testAllMeasurementInstance(self): |
59 _GetAllPossiblePageTestInstances() | 59 _GetAllPossiblePageTestInstances() |
OLD | NEW |