| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 logging | 5 import logging |
| 6 import os | 6 import os |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 from gpu_tests import gpu_integration_test | 9 from gpu_tests import gpu_integration_test |
| 10 from gpu_tests import gpu_process_expectations | 10 from gpu_tests import gpu_process_expectations |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 ('GpuProcess_no_gpu_process', 'about:blank'), | 107 ('GpuProcess_no_gpu_process', 'about:blank'), |
| 108 ('GpuProcess_driver_bug_workarounds_in_gpu_process', 'chrome:gpu'), | 108 ('GpuProcess_driver_bug_workarounds_in_gpu_process', 'chrome:gpu'), |
| 109 ('GpuProcess_readback_webgl_gpu_process', 'chrome:gpu'), | 109 ('GpuProcess_readback_webgl_gpu_process', 'chrome:gpu'), |
| 110 ('GpuProcess_driver_bug_workarounds_upon_gl_renderer', | 110 ('GpuProcess_driver_bug_workarounds_upon_gl_renderer', |
| 111 'chrome:gpu'), | 111 'chrome:gpu'), |
| 112 ('GpuProcess_only_one_workaround', 'chrome:gpu'), | 112 ('GpuProcess_only_one_workaround', 'chrome:gpu'), |
| 113 ('GpuProcess_skip_gpu_process', 'chrome:gpu'), | 113 ('GpuProcess_skip_gpu_process', 'chrome:gpu'), |
| 114 ('GpuProcess_identify_active_gpu1', 'chrome:gpu'), | 114 ('GpuProcess_identify_active_gpu1', 'chrome:gpu'), |
| 115 ('GpuProcess_identify_active_gpu2', 'chrome:gpu'), | 115 ('GpuProcess_identify_active_gpu2', 'chrome:gpu'), |
| 116 ('GpuProcess_identify_active_gpu3', 'chrome:gpu'), | 116 ('GpuProcess_identify_active_gpu3', 'chrome:gpu'), |
| 117 ('GpuProcess_identify_active_gpu4', 'chrome:gpu'), | 117 ('GpuProcess_identify_active_gpu4', 'chrome:gpu')) |
| 118 ('GpuProcess_software_gpu_process', 'about:blank')) | |
| 119 | 118 |
| 120 # The earlier has_transparent_visuals_gpu_process and | 119 # The earlier has_transparent_visuals_gpu_process and |
| 121 # no_transparent_visuals_gpu_process tests became no-ops in | 120 # no_transparent_visuals_gpu_process tests became no-ops in |
| 122 # http://crrev.com/2347383002 and were deleted. | 121 # http://crrev.com/2347383002 and were deleted. |
| 123 | 122 |
| 124 for t in tests: | 123 for t in tests: |
| 125 yield (t[0], t[1], ('_' + t[0])) | 124 yield (t[0], t[1], ('_' + t[0])) |
| 126 | 125 |
| 127 def RunActualGpuTest(self, test_path, *args): | 126 def RunActualGpuTest(self, test_path, *args): |
| 128 test_name = args[0] | 127 test_name = args[0] |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 '--gpu-testing-vendor-id=0x10de', | 499 '--gpu-testing-vendor-id=0x10de', |
| 501 '--gpu-testing-device-id=0x0de1', | 500 '--gpu-testing-device-id=0x0de1', |
| 502 '--gpu-testing-secondary-vendor-ids=', | 501 '--gpu-testing-secondary-vendor-ids=', |
| 503 '--gpu-testing-secondary-device-ids=', | 502 '--gpu-testing-secondary-device-ids=', |
| 504 '--gpu-testing-gl-vendor=nouveau']) | 503 '--gpu-testing-gl-vendor=nouveau']) |
| 505 self._Navigate(test_path) | 504 self._Navigate(test_path) |
| 506 self._VerifyActiveAndInactiveGPUs( | 505 self._VerifyActiveAndInactiveGPUs( |
| 507 ['VENDOR = 0x10de, DEVICE= 0x0de1 *ACTIVE*'], | 506 ['VENDOR = 0x10de, DEVICE= 0x0de1 *ACTIVE*'], |
| 508 []) | 507 []) |
| 509 | 508 |
| 510 def _GpuProcess_software_gpu_process(self, test_path): | |
| 511 # Hit exception from id 50 from kSoftwareRenderingListJson. | |
| 512 self.RestartBrowserIfNecessaryWithArgs([ | |
| 513 '--gpu-testing-vendor-id=0x10de', | |
| 514 '--gpu-testing-device-id=0x0de1', | |
| 515 '--gpu-testing-gl-vendor=VMware', | |
| 516 '--gpu-testing-gl-renderer=SVGA3D', | |
| 517 '--gpu-testing-gl-version=2.1 Mesa 10.1']) | |
| 518 self._Navigate(test_path) | |
| 519 self._VerifyGpuProcessPresent() | |
| 520 | |
| 521 def load_tests(loader, tests, pattern): | 509 def load_tests(loader, tests, pattern): |
| 522 del loader, tests, pattern # Unused. | 510 del loader, tests, pattern # Unused. |
| 523 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) | 511 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) |
| OLD | NEW |