| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 # to relaunch it, if a new pixel test requires a different set of | 43 # to relaunch it, if a new pixel test requires a different set of |
| 44 # arguments. | 44 # arguments. |
| 45 _last_launched_browser_args = set() | 45 _last_launched_browser_args = set() |
| 46 | 46 |
| 47 @classmethod | 47 @classmethod |
| 48 def Name(cls): | 48 def Name(cls): |
| 49 """The name by which this test is invoked on the command line.""" | 49 """The name by which this test is invoked on the command line.""" |
| 50 return 'gpu_process' | 50 return 'gpu_process' |
| 51 | 51 |
| 52 @classmethod | 52 @classmethod |
| 53 def setUpClass(cls): | 53 def SetUpProcess(cls): |
| 54 super(cls, GpuProcessIntegrationTest).setUpClass() | 54 super(cls, GpuProcessIntegrationTest).SetUpProcess() |
| 55 cls._original_finder_options = cls._finder_options.Copy() | 55 cls._original_finder_options = cls._finder_options.Copy() |
| 56 cls.CustomizeBrowserArgs([]) | 56 cls.CustomizeBrowserArgs([]) |
| 57 cls.StartBrowser() | 57 cls.StartBrowser() |
| 58 cls.SetStaticServerDirs([data_path]) | 58 cls.SetStaticServerDirs([data_path]) |
| 59 | 59 |
| 60 @classmethod | 60 @classmethod |
| 61 def CustomizeBrowserArgs(cls, browser_args): | 61 def CustomizeBrowserArgs(cls, browser_args): |
| 62 if not browser_args: | 62 if not browser_args: |
| 63 browser_args = [] | 63 browser_args = [] |
| 64 cls._finder_options = cls._original_finder_options.Copy() | 64 cls._finder_options = cls._original_finder_options.Copy() |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 '--gpu-testing-device-id=0x0de1', | 514 '--gpu-testing-device-id=0x0de1', |
| 515 '--gpu-testing-gl-vendor=VMware', | 515 '--gpu-testing-gl-vendor=VMware', |
| 516 '--gpu-testing-gl-renderer=SVGA3D', | 516 '--gpu-testing-gl-renderer=SVGA3D', |
| 517 '--gpu-testing-gl-version=2.1 Mesa 10.1']) | 517 '--gpu-testing-gl-version=2.1 Mesa 10.1']) |
| 518 self._Navigate(test_path) | 518 self._Navigate(test_path) |
| 519 self._VerifyGpuProcessPresent() | 519 self._VerifyGpuProcessPresent() |
| 520 | 520 |
| 521 def load_tests(loader, tests, pattern): | 521 def load_tests(loader, tests, pattern): |
| 522 del loader, tests, pattern # Unused. | 522 del loader, tests, pattern # Unused. |
| 523 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) | 523 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) |
| OLD | NEW |