OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 unittest | 5 import unittest |
6 | 6 |
7 from telemetry import browser_finder | 7 from telemetry import browser_finder |
8 from telemetry import options_for_unittests | 8 from telemetry import options_for_unittests |
9 from telemetry import page_runner | 9 from telemetry import page_runner |
10 from telemetry import page as page_module | 10 from telemetry import page as page_module |
(...skipping 29 matching lines...) Expand all Loading... |
40 continue | 40 continue |
41 setattr(options, k, v) | 41 setattr(options, k, v) |
42 | 42 |
43 benchmark.CustomizeBrowserOptions(options) | 43 benchmark.CustomizeBrowserOptions(options) |
44 possible_browser = browser_finder.FindBrowser(options) | 44 possible_browser = browser_finder.FindBrowser(options) |
45 | 45 |
46 results = page_benchmark_results.PageBenchmarkResults() | 46 results = page_benchmark_results.PageBenchmarkResults() |
47 with page_runner.PageRunner(ps) as runner: | 47 with page_runner.PageRunner(ps) as runner: |
48 runner.Run(options, possible_browser, benchmark, results) | 48 runner.Run(options, possible_browser, benchmark, results) |
49 return results | 49 return results |
OLD | NEW |