| OLD | NEW |
| 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 logging | 5 import logging |
| 6 import optparse | 6 import optparse |
| 7 import os | 7 import os |
| 8 import shutil | 8 import shutil |
| 9 import sys | 9 import sys |
| 10 import zipfile | 10 import zipfile |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 return BenchmarkMetadata(self.Name()) | 84 return BenchmarkMetadata(self.Name()) |
| 85 | 85 |
| 86 def Run(self, finder_options): | 86 def Run(self, finder_options): |
| 87 """Run this test with the given options.""" | 87 """Run this test with the given options.""" |
| 88 self.CustomizeBrowserOptions(finder_options.browser_options) | 88 self.CustomizeBrowserOptions(finder_options.browser_options) |
| 89 | 89 |
| 90 pt = self.PageTestClass()() | 90 pt = self.PageTestClass()() |
| 91 pt.__name__ = self.__class__.__name__ | 91 pt.__name__ = self.__class__.__name__ |
| 92 | 92 |
| 93 if hasattr(self, '_disabled_strings'): | 93 if hasattr(self, '_disabled_strings'): |
| 94 # pylint: disable=protected-access |
| 94 pt._disabled_strings = self._disabled_strings | 95 pt._disabled_strings = self._disabled_strings |
| 95 if hasattr(self, '_enabled_strings'): | 96 if hasattr(self, '_enabled_strings'): |
| 97 # pylint: disable=protected-access |
| 96 pt._enabled_strings = self._enabled_strings | 98 pt._enabled_strings = self._enabled_strings |
| 97 | 99 |
| 98 expectations = self.CreateExpectations() | 100 expectations = self.CreateExpectations() |
| 99 us = self.CreateUserStorySet(finder_options) | 101 us = self.CreateUserStorySet(finder_options) |
| 100 | 102 |
| 101 self._DownloadGeneratedProfileArchive(finder_options) | 103 self._DownloadGeneratedProfileArchive(finder_options) |
| 102 | 104 |
| 103 benchmark_metadata = self.GetMetadata() | 105 benchmark_metadata = self.GetMetadata() |
| 104 results = results_options.CreateResults(benchmark_metadata, finder_options) | 106 results = results_options.CreateResults(benchmark_metadata, finder_options) |
| 105 try: | 107 try: |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 """ | 214 """ |
| 213 return test_expectations.TestExpectations() | 215 return test_expectations.TestExpectations() |
| 214 | 216 |
| 215 | 217 |
| 216 def AddCommandLineArgs(parser): | 218 def AddCommandLineArgs(parser): |
| 217 page_runner.AddCommandLineArgs(parser) | 219 page_runner.AddCommandLineArgs(parser) |
| 218 | 220 |
| 219 | 221 |
| 220 def ProcessCommandLineArgs(parser, args): | 222 def ProcessCommandLineArgs(parser, args): |
| 221 page_runner.ProcessCommandLineArgs(parser, args) | 223 page_runner.ProcessCommandLineArgs(parser, args) |
| OLD | NEW |