Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Unified Diff: tools/chrome_proxy/common/chrome_proxy_benchmark.py

Issue 1098253004: Move top_20 tests to a separate suite (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use ChromeProxyValidation in common in integration_tests Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/chrome_proxy/common/__init__.py ('k') | tools/chrome_proxy/common/chrome_proxy_measurements.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+
« no previous file with comments | « tools/chrome_proxy/common/__init__.py ('k') | tools/chrome_proxy/common/chrome_proxy_measurements.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698