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

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

Issue 452123002: Rename ValidatePage/MeasurePage -> ValidateAndMeasurePage for all files outside tools/telemetry and… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/gpu_process.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 import os 4 import os
5 import time 5 import time
6 6
7 import context_lost_expectations 7 import context_lost_expectations
8 8
9 from telemetry import benchmark as benchmark_module 9 from telemetry import benchmark as benchmark_module
10 from telemetry.core import exceptions 10 from telemetry.core import exceptions
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 needs_browser_restart_after_each_page=True) 58 needs_browser_restart_after_each_page=True)
59 59
60 def CustomizeBrowserOptions(self, options): 60 def CustomizeBrowserOptions(self, options):
61 options.AppendExtraBrowserArgs( 61 options.AppendExtraBrowserArgs(
62 '--disable-domain-blocking-for-3d-apis') 62 '--disable-domain-blocking-for-3d-apis')
63 options.AppendExtraBrowserArgs( 63 options.AppendExtraBrowserArgs(
64 '--disable-gpu-process-crash-limit') 64 '--disable-gpu-process-crash-limit')
65 # Required for about:gpucrash handling from Telemetry. 65 # Required for about:gpucrash handling from Telemetry.
66 options.AppendExtraBrowserArgs('--enable-gpu-benchmarking') 66 options.AppendExtraBrowserArgs('--enable-gpu-benchmarking')
67 67
68 def ValidatePage(self, page, tab, results): 68 def ValidateAndMeasurePage(self, page, tab, results):
69 if page.kill_gpu_process: 69 if page.kill_gpu_process:
70 # Doing the GPU process kill operation cooperatively -- in the 70 # Doing the GPU process kill operation cooperatively -- in the
71 # same page's context -- is much more stressful than restarting 71 # same page's context -- is much more stressful than restarting
72 # the browser every time. 72 # the browser every time.
73 for x in range(page.number_of_gpu_process_kills): 73 for x in range(page.number_of_gpu_process_kills):
74 if not tab.browser.supports_tab_control: 74 if not tab.browser.supports_tab_control:
75 raise page_test.Failure('Browser must support tab control') 75 raise page_test.Failure('Browser must support tab control')
76 76
77 expected_kills = x + 1 77 expected_kills = x + 1
78 78
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 ps = page_set.PageSet( 296 ps = page_set.PageSet(
297 file_path=data_path, 297 file_path=data_path,
298 user_agent_type='desktop', 298 user_agent_type='desktop',
299 serving_dirs=set([''])) 299 serving_dirs=set(['']))
300 ps.AddPage(GPUProcessCrashesExactlyOnce(ps, ps.base_dir)) 300 ps.AddPage(GPUProcessCrashesExactlyOnce(ps, ps.base_dir))
301 ps.AddPage(WebGLContextLostFromGPUProcessExitPage(ps, ps.base_dir)) 301 ps.AddPage(WebGLContextLostFromGPUProcessExitPage(ps, ps.base_dir))
302 ps.AddPage(WebGLContextLostFromLoseContextExtensionPage(ps, ps.base_dir)) 302 ps.AddPage(WebGLContextLostFromLoseContextExtensionPage(ps, ps.base_dir))
303 ps.AddPage(WebGLContextLostFromQuantityPage(ps, ps.base_dir)) 303 ps.AddPage(WebGLContextLostFromQuantityPage(ps, ps.base_dir))
304 ps.AddPage(WebGLContextLostFromSelectElementPage(ps, ps.base_dir)) 304 ps.AddPage(WebGLContextLostFromSelectElementPage(ps, ps.base_dir))
305 return ps 305 return ps
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/gpu_process.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698