1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 from integration_tests
import chrome_proxy_measurements
as measurements
6 from integration_tests
import chrome_proxy_pagesets
as pagesets
7 from telemetry
import benchmark
10 @benchmark.Enabled('android')
11 class ChromeProxyLatency(benchmark
.Benchmark
):
13 test
= measurements
.ChromeProxyLatency
14 page_set
= pagesets
.Top20PageSet
16 def CustomizeBrowserOptions(self
, options
):
17 options
.AppendExtraBrowserArgs('--enable-spdy-proxy-auth')
20 @benchmark.Enabled('android')
21 class ChromeProxyLatencyDirect(benchmark
.Benchmark
):
22 tag
= 'latency_direct'
23 test
= measurements
.ChromeProxyLatency
24 page_set
= pagesets
.Top20PageSet
27 @benchmark.Enabled('android')
28 class ChromeProxyLatencySynthetic(ChromeProxyLatency
):
29 page_set
= pagesets
.SyntheticPageSet
32 @benchmark.Enabled('android')
33 class ChromeProxyLatencySyntheticDirect(ChromeProxyLatencyDirect
):
34 page_set
= pagesets
.SyntheticPageSet
37 @benchmark.Enabled('android')
38 class ChromeProxyDataSaving(benchmark
.Benchmark
):
40 test
= measurements
.ChromeProxyDataSaving
41 page_set
= pagesets
.Top20PageSet
43 def CustomizeBrowserOptions(self
, options
):
44 options
.AppendExtraBrowserArgs('--enable-spdy-proxy-auth')
47 @benchmark.Enabled('android')
48 class ChromeProxyDataSavingDirect(benchmark
.Benchmark
):
49 tag
= 'data_saving_direct'
50 test
= measurements
.ChromeProxyDataSaving
51 page_set
= pagesets
.Top20PageSet
54 @benchmark.Enabled('android')
55 class ChromeProxyDataSavingSynthetic(ChromeProxyDataSaving
):
56 page_set
= pagesets
.SyntheticPageSet
59 @benchmark.Enabled('android')
60 class ChromeProxyDataSavingSyntheticDirect(ChromeProxyDataSavingDirect
):
61 page_set
= pagesets
.SyntheticPageSet
64 @benchmark.Enabled('android')
65 class ChromeProxyHeaderValidation(benchmark
.Benchmark
):
66 tag
= 'header_validation'
67 test
= measurements
.ChromeProxyHeaders
68 page_set
= pagesets
.Top20PageSet
71 @benchmark.Enabled('android')
72 class ChromeProxyClientVersion(benchmark
.Benchmark
):
73 tag
= 'client_version'
74 test
= measurements
.ChromeProxyClientVersion
75 page_set
= pagesets
.SyntheticPageSet
78 @benchmark.Enabled('android')
79 class ChromeProxyClientType(benchmark
.Benchmark
):
81 test
= measurements
.ChromeProxyClientType
82 page_set
= pagesets
.ClientTypePageSet
85 @benchmark.Enabled('android')
86 class ChromeProxyBypass(benchmark
.Benchmark
):
88 test
= measurements
.ChromeProxyBypass
89 page_set
= pagesets
.BypassPageSet
92 @benchmark.Enabled('android')
93 class ChromeProxyCorsBypass(benchmark
.Benchmark
):
95 test
= measurements
.ChromeProxyCorsBypass
96 page_set
= pagesets
.CorsBypassPageSet
99 @benchmark.Enabled('android')
100 class ChromeProxyBlockOnce(benchmark
.Benchmark
):
102 test
= measurements
.ChromeProxyBlockOnce
103 page_set
= pagesets
.BlockOncePageSet
106 @benchmark.Enabled('android')
107 class ChromeProxySafeBrowsing(benchmark
.Benchmark
):
109 test
= measurements
.ChromeProxySafebrowsing
110 page_set
= pagesets
.SafebrowsingPageSet
113 @benchmark.Enabled('android')
114 class ChromeProxyHTTPFallbackProbeURL(benchmark
.Benchmark
):
115 tag
= 'fallback-probe'
116 test
= measurements
.ChromeProxyHTTPFallbackProbeURL
117 page_set
= pagesets
.SyntheticPageSet
120 @benchmark.Enabled('android')
121 class ChromeProxyHTTPFallbackViaHeader(benchmark
.Benchmark
):
122 tag
= 'fallback-viaheader'
123 test
= measurements
.ChromeProxyHTTPFallbackViaHeader
124 page_set
= pagesets
.FallbackViaHeaderPageSet
127 @benchmark.Enabled('android')
128 class ChromeProxyHTTPToDirectFallback(benchmark
.Benchmark
):
129 tag
= 'http-to-direct-fallback'
130 test
= measurements
.ChromeProxyHTTPToDirectFallback
131 page_set
= pagesets
.HTTPToDirectFallbackPageSet
134 @benchmark.Enabled('android')
135 class ChromeProxyExplicitBypass(benchmark
.Benchmark
):
136 tag
= 'explicit-bypass'
137 test
= measurements
.ChromeProxyExplicitBypass
138 page_set
= pagesets
.ExplicitBypassPageSet
141 @benchmark.Enabled('android')
142 class ChromeProxySmoke(benchmark
.Benchmark
):
144 test
= measurements
.ChromeProxySmoke
145 page_set
= pagesets
.SmokePageSet