| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 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 from gpu_tests import gpu_process_expectations as expectations | 4 from gpu_tests import gpu_process_expectations as expectations |
| 5 from gpu_tests import gpu_test_base | 5 from gpu_tests import gpu_test_base |
| 6 import page_sets | 6 import page_sets |
| 7 | 7 |
| 8 from telemetry.page import page_test | 8 from telemetry.page import page_test |
| 9 | 9 |
| 10 test_harness_script = r""" | 10 test_harness_script = r""" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 test = GpuProcessValidator | 48 test = GpuProcessValidator |
| 49 | 49 |
| 50 @classmethod | 50 @classmethod |
| 51 def Name(cls): | 51 def Name(cls): |
| 52 return 'gpu_process' | 52 return 'gpu_process' |
| 53 | 53 |
| 54 def _CreateExpectations(self): | 54 def _CreateExpectations(self): |
| 55 return expectations.GpuProcessExpectations() | 55 return expectations.GpuProcessExpectations() |
| 56 | 56 |
| 57 def CreateStorySet(self, options): | 57 def CreateStorySet(self, options): |
| 58 story_set = page_sets.GpuProcessTestsStorySet(self.GetExpectations()) | 58 browser_type = options.browser_options.browser_type |
| 59 is_platform_android = browser_type.startswith('android') |
| 60 story_set = page_sets.GpuProcessTestsStorySet(self.GetExpectations(), |
| 61 is_platform_android) |
| 59 for page in story_set: | 62 for page in story_set: |
| 60 page.script_to_evaluate_on_commit = test_harness_script | 63 page.script_to_evaluate_on_commit = test_harness_script |
| 61 return story_set | 64 return story_set |
| OLD | NEW |