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

Side by Side Diff: tools/chrome_proxy/common/chrome_proxy_metrics.py

Issue 2539973004: Update reference to page_test module to use legacy_page_test module (Closed)
Patch Set: update Created 4 years 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
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 import logging 5 import logging
6 import time 6 import time
7 7
8 from common import network_metrics 8 from common import network_metrics
9 from telemetry.page import page_test 9 from telemetry.page import legacy_page_test
10 from telemetry.value import scalar 10 from telemetry.value import scalar
11 11
12 12
13 CHROME_PROXY_VIA_HEADER = 'Chrome-Compression-Proxy' 13 CHROME_PROXY_VIA_HEADER = 'Chrome-Compression-Proxy'
14 14
15 15
16 class ChromeProxyMetricException(page_test.MeasurementFailure): 16 class ChromeProxyMetricException(page_test.MeasurementFailure):
17 pass 17 pass
18 18
19 19
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 def HasChromeProxyLitePageExpRequest(self): 110 def HasChromeProxyLitePageExpRequest(self):
111 return self.HasRequestHeader('Chrome-Proxy', "exp=ignore_preview_blacklist") 111 return self.HasRequestHeader('Chrome-Proxy', "exp=ignore_preview_blacklist")
112 112
113 def HasChromeProxyLitePageResponse(self): 113 def HasChromeProxyLitePageResponse(self):
114 return self.HasResponseHeader('Chrome-Proxy-Content-Transform', "lite-page") 114 return self.HasResponseHeader('Chrome-Proxy-Content-Transform', "lite-page")
115 115
116 def HasChromeProxyPassThroughRequest(self): 116 def HasChromeProxyPassThroughRequest(self):
117 return self.HasRequestHeader('Chrome-Proxy-Accept-Transform', "identity") 117 return self.HasRequestHeader('Chrome-Proxy-Accept-Transform', "identity")
118 118
OLDNEW
« no previous file with comments | « tools/chrome_proxy/common/chrome_proxy_measurements.py ('k') | tools/chrome_proxy/common/network_metrics.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698