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

Side by Side Diff: tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py

Issue 820093002: Integration tests for desktop platforms and safebrowsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Generic platform independent test names Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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 from integration_tests import chrome_proxy_measurements as measurements 5 from integration_tests import chrome_proxy_measurements as measurements
6 from integration_tests import chrome_proxy_pagesets as pagesets 6 from integration_tests import chrome_proxy_pagesets as pagesets
7 from telemetry import benchmark 7 from telemetry import benchmark
8 8
9 9
10 @benchmark.Enabled('android')
11 class ChromeProxyLatency(benchmark.Benchmark): 10 class ChromeProxyLatency(benchmark.Benchmark):
12 tag = 'latency' 11 tag = 'latency'
13 test = measurements.ChromeProxyLatency 12 test = measurements.ChromeProxyLatency
14 page_set = pagesets.Top20PageSet 13 page_set = pagesets.Top20PageSet
15 14
16 def CustomizeBrowserOptions(self, options): 15 def CustomizeBrowserOptions(self, options):
17 options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth') 16 options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth')
18 17
19 18
20 @benchmark.Enabled('android')
21 class ChromeProxyLatencyDirect(benchmark.Benchmark): 19 class ChromeProxyLatencyDirect(benchmark.Benchmark):
22 tag = 'latency_direct' 20 tag = 'latency_direct'
23 test = measurements.ChromeProxyLatency 21 test = measurements.ChromeProxyLatency
24 page_set = pagesets.Top20PageSet 22 page_set = pagesets.Top20PageSet
25 23
26 24
27 @benchmark.Enabled('android')
28 class ChromeProxyLatencySynthetic(ChromeProxyLatency): 25 class ChromeProxyLatencySynthetic(ChromeProxyLatency):
29 page_set = pagesets.SyntheticPageSet 26 page_set = pagesets.SyntheticPageSet
30 27
31 28
32 @benchmark.Enabled('android')
33 class ChromeProxyLatencySyntheticDirect(ChromeProxyLatencyDirect): 29 class ChromeProxyLatencySyntheticDirect(ChromeProxyLatencyDirect):
34 page_set = pagesets.SyntheticPageSet 30 page_set = pagesets.SyntheticPageSet
35 31
36 32
37 @benchmark.Enabled('android')
38 class ChromeProxyDataSaving(benchmark.Benchmark): 33 class ChromeProxyDataSaving(benchmark.Benchmark):
39 tag = 'data_saving' 34 tag = 'data_saving'
40 test = measurements.ChromeProxyDataSaving 35 test = measurements.ChromeProxyDataSaving
41 page_set = pagesets.Top20PageSet 36 page_set = pagesets.Top20PageSet
42 37
43 def CustomizeBrowserOptions(self, options): 38 def CustomizeBrowserOptions(self, options):
44 options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth') 39 options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth')
45 40
46 41
47 @benchmark.Enabled('android')
48 class ChromeProxyDataSavingDirect(benchmark.Benchmark): 42 class ChromeProxyDataSavingDirect(benchmark.Benchmark):
49 tag = 'data_saving_direct' 43 tag = 'data_saving_direct'
50 test = measurements.ChromeProxyDataSaving 44 test = measurements.ChromeProxyDataSaving
51 page_set = pagesets.Top20PageSet 45 page_set = pagesets.Top20PageSet
52 46
53 47
54 @benchmark.Enabled('android')
55 class ChromeProxyDataSavingSynthetic(ChromeProxyDataSaving): 48 class ChromeProxyDataSavingSynthetic(ChromeProxyDataSaving):
56 page_set = pagesets.SyntheticPageSet 49 page_set = pagesets.SyntheticPageSet
57 50
58 51
59 @benchmark.Enabled('android')
60 class ChromeProxyDataSavingSyntheticDirect(ChromeProxyDataSavingDirect): 52 class ChromeProxyDataSavingSyntheticDirect(ChromeProxyDataSavingDirect):
61 page_set = pagesets.SyntheticPageSet 53 page_set = pagesets.SyntheticPageSet
62 54
63 55
64 @benchmark.Enabled('android')
65 class ChromeProxyHeaderValidation(benchmark.Benchmark): 56 class ChromeProxyHeaderValidation(benchmark.Benchmark):
66 tag = 'header_validation' 57 tag = 'header_validation'
67 test = measurements.ChromeProxyHeaders 58 test = measurements.ChromeProxyHeaders
68 page_set = pagesets.Top20PageSet 59 page_set = pagesets.Top20PageSet
69 60
70 61
71 @benchmark.Enabled('android')
72 class ChromeProxyClientVersion(benchmark.Benchmark): 62 class ChromeProxyClientVersion(benchmark.Benchmark):
73 tag = 'client_version' 63 tag = 'client_version'
74 test = measurements.ChromeProxyClientVersion 64 test = measurements.ChromeProxyClientVersion
75 page_set = pagesets.SyntheticPageSet 65 page_set = pagesets.SyntheticPageSet
76 66
77 67
78 @benchmark.Enabled('android')
79 class ChromeProxyClientType(benchmark.Benchmark): 68 class ChromeProxyClientType(benchmark.Benchmark):
80 tag = 'client_type' 69 tag = 'client_type'
81 test = measurements.ChromeProxyClientType 70 test = measurements.ChromeProxyClientType
82 page_set = pagesets.ClientTypePageSet 71 page_set = pagesets.ClientTypePageSet
83 72
84 73
85 @benchmark.Enabled('android')
86 class ChromeProxyBypass(benchmark.Benchmark): 74 class ChromeProxyBypass(benchmark.Benchmark):
87 tag = 'bypass' 75 tag = 'bypass'
88 test = measurements.ChromeProxyBypass 76 test = measurements.ChromeProxyBypass
89 page_set = pagesets.BypassPageSet 77 page_set = pagesets.BypassPageSet
90 78
91 79
92 @benchmark.Enabled('android')
93 class ChromeProxyCorsBypass(benchmark.Benchmark): 80 class ChromeProxyCorsBypass(benchmark.Benchmark):
94 tag = 'bypass' 81 tag = 'bypass'
95 test = measurements.ChromeProxyCorsBypass 82 test = measurements.ChromeProxyCorsBypass
96 page_set = pagesets.CorsBypassPageSet 83 page_set = pagesets.CorsBypassPageSet
97 84
98 85
99 @benchmark.Enabled('android')
100 class ChromeProxyBlockOnce(benchmark.Benchmark): 86 class ChromeProxyBlockOnce(benchmark.Benchmark):
101 tag = 'block_once' 87 tag = 'block_once'
102 test = measurements.ChromeProxyBlockOnce 88 test = measurements.ChromeProxyBlockOnce
103 page_set = pagesets.BlockOncePageSet 89 page_set = pagesets.BlockOncePageSet
104 90
105
106 @benchmark.Enabled('android') 91 @benchmark.Enabled('android')
107 class ChromeProxySafeBrowsing(benchmark.Benchmark): 92 # Safebrowsing is enabled for Android and iOS.
108 tag = 'safebrowsing' 93 class ChromeProxySafeBrowsingOn(benchmark.Benchmark):
sclittle 2015/01/23 22:59:41 Why not "enabled" like the tag below?
Not at Google. Contact bengr 2015/01/23 23:03:28 See below.
109 test = measurements.ChromeProxySafebrowsing 94 tag = 'safebrowsingenabled'
95 test = measurements.ChromeProxySafebrowsingOn
110 page_set = pagesets.SafebrowsingPageSet 96 page_set = pagesets.SafebrowsingPageSet
111 97
98 @benchmark.Disabled('android')
99 # Safebrowsing is switched off for Android Webview and all desktop platforms.
100 class ChromeProxySafeBrowsingOff(benchmark.Benchmark):
sclittle 2015/01/23 22:59:41 Why not "disabled" like the tag below?
Not at Google. Contact bengr 2015/01/23 23:03:28 I have seen "Disabled" being used for tests which
sclittle 2015/01/23 23:10:34 OK, maybe the tag should be "safebrowsing_off" the
Not at Google. Contact bengr 2015/01/23 23:16:26 Done.
101 tag = 'safebrowsingdisabled'
102 test = measurements.ChromeProxySafebrowsingOff
103 page_set = pagesets.SafebrowsingPageSet
112 104
113 @benchmark.Enabled('android')
114 class ChromeProxyHTTPFallbackProbeURL(benchmark.Benchmark): 105 class ChromeProxyHTTPFallbackProbeURL(benchmark.Benchmark):
115 tag = 'fallback_probe' 106 tag = 'fallback_probe'
116 test = measurements.ChromeProxyHTTPFallbackProbeURL 107 test = measurements.ChromeProxyHTTPFallbackProbeURL
117 page_set = pagesets.SyntheticPageSet 108 page_set = pagesets.SyntheticPageSet
118 109
119 110
120 @benchmark.Enabled('android')
121 class ChromeProxyHTTPFallbackViaHeader(benchmark.Benchmark): 111 class ChromeProxyHTTPFallbackViaHeader(benchmark.Benchmark):
122 tag = 'fallback_viaheader' 112 tag = 'fallback_viaheader'
123 test = measurements.ChromeProxyHTTPFallbackViaHeader 113 test = measurements.ChromeProxyHTTPFallbackViaHeader
124 page_set = pagesets.FallbackViaHeaderPageSet 114 page_set = pagesets.FallbackViaHeaderPageSet
125 115
126 116
127 @benchmark.Enabled('android')
128 class ChromeProxyHTTPToDirectFallback(benchmark.Benchmark): 117 class ChromeProxyHTTPToDirectFallback(benchmark.Benchmark):
129 tag = 'http_to_direct_fallback' 118 tag = 'http_to_direct_fallback'
130 test = measurements.ChromeProxyHTTPToDirectFallback 119 test = measurements.ChromeProxyHTTPToDirectFallback
131 page_set = pagesets.HTTPToDirectFallbackPageSet 120 page_set = pagesets.HTTPToDirectFallbackPageSet
132 121
133 122
134 @benchmark.Enabled('android')
135 class ChromeProxyReenableAfterBypass(benchmark.Benchmark): 123 class ChromeProxyReenableAfterBypass(benchmark.Benchmark):
136 tag = 'reenable_after_bypass' 124 tag = 'reenable_after_bypass'
137 test = measurements.ChromeProxyReenableAfterBypass 125 test = measurements.ChromeProxyReenableAfterBypass
138 page_set = pagesets.ReenableAfterBypassPageSet 126 page_set = pagesets.ReenableAfterBypassPageSet
139 127
140 128
141 @benchmark.Enabled('android')
142 class ChromeProxySmoke(benchmark.Benchmark): 129 class ChromeProxySmoke(benchmark.Benchmark):
143 tag = 'smoke' 130 tag = 'smoke'
144 test = measurements.ChromeProxySmoke 131 test = measurements.ChromeProxySmoke
145 page_set = pagesets.SmokePageSet 132 page_set = pagesets.SmokePageSet
OLDNEW
« no previous file with comments | « no previous file | tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698