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

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

Issue 1413883003: Add a presubmit script and pylintrc for content/test/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 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 import test_expectations 5 from gpu_tests import test_expectations
6 6
7 ANGLE_CONDITIONS = ['d3d9', 'd3d11', 'opengl'] 7 ANGLE_CONDITIONS = ['d3d9', 'd3d11', 'opengl']
8 8
9 GPU_CONDITIONS = ['amd', 'arm', 'broadcom', 'hisilicon', 'intel', 'imagination', 9 GPU_CONDITIONS = ['amd', 'arm', 'broadcom', 'hisilicon', 'intel', 'imagination',
10 'nvidia', 'qualcomm', 'vivante'] 10 'nvidia', 'qualcomm', 'vivante']
11 11
12 class GpuExpectation(test_expectations.Expectation): 12 class GpuExpectation(test_expectations.Expectation):
13 def __init__(self, expectation, pattern, conditions=None, bug=None, 13 def __init__(self, expectation, pattern, conditions=None, bug=None,
14 max_num_retries=0): 14 max_num_retries=0):
15 self.gpu_conditions = [] 15 self.gpu_conditions = []
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 if gpu_info and gpu_info.aux_attributes: 122 if gpu_info and gpu_info.aux_attributes:
123 gl_renderer = gpu_info.aux_attributes.get('gl_renderer') 123 gl_renderer = gpu_info.aux_attributes.get('gl_renderer')
124 if gl_renderer: 124 if gl_renderer:
125 if 'Direct3D11' in gl_renderer: 125 if 'Direct3D11' in gl_renderer:
126 return 'd3d11' 126 return 'd3d11'
127 elif 'Direct3D9' in gl_renderer: 127 elif 'Direct3D9' in gl_renderer:
128 return 'd3d9' 128 return 'd3d9'
129 elif 'OpenGL' in gl_renderer: 129 elif 'OpenGL' in gl_renderer:
130 return 'opengl' 130 return 'opengl'
131 return '' 131 return ''
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698