Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: content/test/gpu/gpu_tests/trace_integration_test.py

Issue 2662863002: Add typ boilerplate to Telemetry-based GPU tests. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 import os 5 import os
6 import sys
6 7
7 from gpu_tests import gpu_integration_test 8 from gpu_tests import gpu_integration_test
8 from gpu_tests import path_util 9 from gpu_tests import path_util
9 from gpu_tests import pixel_test_pages 10 from gpu_tests import pixel_test_pages
10 from gpu_tests import trace_test_expectations 11 from gpu_tests import trace_test_expectations
11 12
12 from telemetry.timeline import model as model_module 13 from telemetry.timeline import model as model_module
13 from telemetry.timeline import tracing_config 14 from telemetry.timeline import tracing_config
14 15
15 TOPLEVEL_GL_CATEGORY = 'gpu_toplevel' 16 TOPLEVEL_GL_CATEGORY = 'gpu_toplevel'
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 return trace_test_expectations.TraceTestExpectations() 120 return trace_test_expectations.TraceTestExpectations()
120 121
121 @classmethod 122 @classmethod
122 def setUpClass(cls): 123 def setUpClass(cls):
123 super(cls, TraceIntegrationTest).setUpClass() 124 super(cls, TraceIntegrationTest).setUpClass()
124 path_util.SetupTelemetryPaths() 125 path_util.SetupTelemetryPaths()
125 cls.CustomizeOptions() 126 cls.CustomizeOptions()
126 cls.SetBrowserOptions(cls._finder_options) 127 cls.SetBrowserOptions(cls._finder_options)
127 cls.StartBrowser() 128 cls.StartBrowser()
128 cls.SetStaticServerDirs([data_path]) 129 cls.SetStaticServerDirs([data_path])
130
131 def load_tests(loader, tests, pattern):
132 del loader, tests, pattern # Unused.
133 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698