| OLD | NEW |
| 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2015 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 import page_sets |
| 4 import trace_test_expectations | 5 import trace_test_expectations |
| 5 import page_sets | |
| 6 | 6 |
| 7 from telemetry import benchmark | 7 from telemetry import benchmark |
| 8 from telemetry.page import page_test | |
| 9 from telemetry.core.platform import tracing_category_filter | 8 from telemetry.core.platform import tracing_category_filter |
| 10 from telemetry.core.platform import tracing_options | 9 from telemetry.core.platform import tracing_options |
| 10 from telemetry.page import page_test |
| 11 from telemetry.timeline import model as model_module | 11 from telemetry.timeline import model as model_module |
| 12 | 12 |
| 13 TOPLEVEL_GL_CATEGORY = 'gpu_toplevel' | 13 TOPLEVEL_GL_CATEGORY = 'gpu_toplevel' |
| 14 TOPLEVEL_SERVICE_CATEGORY = 'disabled-by-default-gpu.service' | 14 TOPLEVEL_SERVICE_CATEGORY = 'disabled-by-default-gpu.service' |
| 15 TOPLEVEL_DEVICE_CATEGORY = 'disabled-by-default-gpu.device' | 15 TOPLEVEL_DEVICE_CATEGORY = 'disabled-by-default-gpu.device' |
| 16 TOPLEVEL_CATEGORIES = [TOPLEVEL_SERVICE_CATEGORY, TOPLEVEL_DEVICE_CATEGORY] | 16 TOPLEVEL_CATEGORIES = [TOPLEVEL_SERVICE_CATEGORY, TOPLEVEL_DEVICE_CATEGORY] |
| 17 | 17 |
| 18 test_harness_script = r""" | 18 test_harness_script = r""" |
| 19 var domAutomationController = {}; | 19 var domAutomationController = {}; |
| 20 | 20 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 """Tests GPU Device traces show up on devices that support it.""" | 99 """Tests GPU Device traces show up on devices that support it.""" |
| 100 test = _DeviceTraceValidator | 100 test = _DeviceTraceValidator |
| 101 name = 'DeviceTraceTest' | 101 name = 'DeviceTraceTest' |
| 102 | 102 |
| 103 @classmethod | 103 @classmethod |
| 104 def Name(cls): | 104 def Name(cls): |
| 105 return 'device_trace_test' | 105 return 'device_trace_test' |
| 106 | 106 |
| 107 def CreateExpectations(self): | 107 def CreateExpectations(self): |
| 108 return trace_test_expectations.DeviceTraceTestExpectations() | 108 return trace_test_expectations.DeviceTraceTestExpectations() |
| OLD | NEW |