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

Unified Diff: tools/chrome_proxy/integration_tests/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: Revert to old naming scheme for live/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
Index: tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py
diff --git a/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py b/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py
index b3d699c36ee9c4725af83c5d02226f466f1e9c1d..48244752164a2f92e6f97ef4e2de84a719ba3556 100644
--- a/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py
@@ -2,8 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+from common.chrome_proxy_benchmark import ChromeProxyBenchmark
+from integration_tests import pagesets as pagesets
sclittle 2015/04/30 00:07:58 nit: I think you can leave off the "as pagesets" a
bustamante 2015/04/30 20:30:40 Done. I reverted the directory back to chrome_pro
from integration_tests import chrome_proxy_measurements as measurements
-from integration_tests import chrome_proxy_pagesets as pagesets
from telemetry import benchmark
from telemetry.core.backends.chrome import android_browser_finder
@@ -12,101 +13,6 @@ ANDROID_CHROME_BROWSERS = [
browser for browser in android_browser_finder.CHROME_PACKAGE_NAMES
if 'webview' not in browser]
-class ChromeProxyLatency(benchmark.Benchmark):
- tag = 'latency'
- test = measurements.ChromeProxyLatency
- page_set = pagesets.Top20PageSet
-
- @classmethod
- def Name(cls):
- return 'chrome_proxy_benchmark.latency.top_20'
-
-
-class ChromeProxyLatencyDirect(benchmark.Benchmark):
- tag = 'latency_direct'
- test = measurements.ChromeProxyLatency
- page_set = pagesets.Top20PageSet
-
- @classmethod
- def Name(cls):
- return 'chrome_proxy_benchmark.latency_direct.top_20'
-
-
-class ChromeProxyLatencySynthetic(ChromeProxyLatency):
- page_set = pagesets.SyntheticPageSet
-
- @classmethod
- def Name(cls):
- return 'chrome_proxy_benchmark.latency.synthetic'
-
-
-class ChromeProxyLatencySyntheticDirect(ChromeProxyLatencyDirect):
- page_set = pagesets.SyntheticPageSet
-
- @classmethod
- def Name(cls):
- return 'chrome_proxy_benchmark.latency_direct.synthetic'
-
-
-class ChromeProxyDataSaving(benchmark.Benchmark):
- tag = 'data_saving'
- test = measurements.ChromeProxyDataSaving
- page_set = pagesets.Top20PageSet
-
- @classmethod
- def Name(cls):
- return 'chrome_proxy_benchmark.data_saving.top_20'
-
-
-class ChromeProxyDataSavingDirect(benchmark.Benchmark):
- tag = 'data_saving_direct'
- test = measurements.ChromeProxyDataSaving
- page_set = pagesets.Top20PageSet
-
- @classmethod
- def Name(cls):
- return 'chrome_proxy_benchmark.data_saving_direct.top_20'
-
-
-class ChromeProxyDataSavingSynthetic(ChromeProxyDataSaving):
- page_set = pagesets.SyntheticPageSet
-
- @classmethod
- def Name(cls):
- return 'chrome_proxy_benchmark.data_saving.synthetic'
-
-
-class ChromeProxyDataSavingSyntheticDirect(ChromeProxyDataSavingDirect):
- page_set = pagesets.SyntheticPageSet
-
- @classmethod
- def Name(cls):
- return 'chrome_proxy_benchmark.data_saving_direct.synthetic'
-
-
-class ChromeProxyHeaderValidation(benchmark.Benchmark):
- tag = 'header_validation'
- test = measurements.ChromeProxyHeaders
- page_set = pagesets.Top20PageSet
-
- @classmethod
- def Name(cls):
- return 'chrome_proxy_benchmark.header_validation.top_20'
-
-
-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
-
class ChromeProxyClientVersion(ChromeProxyBenchmark):
tag = 'client_version'

Powered by Google App Engine
This is Rietveld 408576698