| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 os | 5 import os |
| 6 import sys | 6 import sys |
| 7 | 7 |
| 8 # Add //tools/perf/ to system path. | 8 # Add //tools/perf/ to system path. |
| 9 sys.path.append(os.path.join(os.path.dirname(__file__), | 9 sys.path.append(os.path.join(os.path.dirname(__file__), |
| 10 os.pardir, os.pardir, os.pardir, | 10 os.pardir, os.pardir, os.pardir, |
| 11 os.pardir, 'tools', 'perf')) | 11 os.pardir, 'tools', 'perf')) |
| 12 | 12 |
| 13 # Add //chrome/test/media_router/internal to system path. |
| 14 sys.path.append(os.path.join(os.path.dirname(__file__), |
| 15 os.pardir, 'internal')) |
| 16 |
| 13 from chrome_telemetry_build import chromium_config | 17 from chrome_telemetry_build import chromium_config |
| 14 | 18 |
| 15 TELEMETRY_DIR = chromium_config.GetTelemetryDir() | 19 TELEMETRY_DIR = chromium_config.GetTelemetryDir() |
| 16 | 20 |
| 17 _top_level_dir = os.path.dirname(os.path.realpath(__file__)) | 21 _top_level_dir = os.path.dirname(os.path.realpath(__file__)) |
| 18 | 22 |
| 19 | 23 |
| 20 def Config(benchmark_subdirs): | 24 def Config(benchmark_subdirs): |
| 21 return chromium_config.ChromiumConfig( | 25 return chromium_config.ChromiumConfig( |
| 22 top_level_dir=_top_level_dir, | 26 top_level_dir=_top_level_dir, |
| 23 benchmark_dirs=[os.path.join(_top_level_dir, subdir) | 27 benchmark_dirs=[os.path.join(_top_level_dir, subdir) |
| 24 for subdir in benchmark_subdirs]) | 28 for subdir in benchmark_subdirs]) |
| OLD | NEW |