| Index: tools/chrome_proxy/common/chrome_proxy_benchmark.py
|
| diff --git a/tools/chrome_proxy/common/chrome_proxy_benchmark.py b/tools/chrome_proxy/common/chrome_proxy_benchmark.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7c4aa8266661ecd5a61a2fe6f7550d6f39983aeb
|
| --- /dev/null
|
| +++ b/tools/chrome_proxy/common/chrome_proxy_benchmark.py
|
| @@ -0,0 +1,21 @@
|
| +# Copyright 2014 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +from common import chrome_proxy_measurements as measurements
|
| +from telemetry import benchmark
|
| +
|
| +
|
| +class ChromeProxyBenchmark(benchmark.Benchmark):
|
| + @classmethod
|
| + def AddCommandLineArgs(cls, parser):
|
| + parser.add_option(
|
| + '--extra-chrome-proxy-via-header',
|
| + type='string', dest="extra_header",
|
| + help='Adds an expected Via header for the Chrome-Proxy tests.')
|
| +
|
| + @classmethod
|
| + def ProcessCommandLineArgs(cls, parser, args):
|
| + if args.extra_header:
|
| + measurements.ChromeProxyValidation.extra_via_header = args.extra_header
|
| +
|
|
|