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

Unified Diff: tools/chrome_proxy/webdriver/simple_smoke.py

Issue 2562523002: Add Histogram functionality. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/chrome_proxy/webdriver/common.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/chrome_proxy/webdriver/simple_smoke.py
diff --git a/tools/chrome_proxy/webdriver/simple_smoke.py b/tools/chrome_proxy/webdriver/simple_smoke.py
index f70cbbb8a15c6a50f51705616cbb71d3a10154ef..c61b91b8b386fdf1ab6799254fc93091907fb2c5 100644
--- a/tools/chrome_proxy/webdriver/simple_smoke.py
+++ b/tools/chrome_proxy/webdriver/simple_smoke.py
@@ -24,6 +24,15 @@ class SimpleSmoke(IntegrationTest):
print "URL: %s, ViaHeader: %s, XHR: %s" % (response.url,
response.ResponseHasViaHeader(), response.WasXHR())
+ # Show how to get a histogram.
+ def TestPingbackHistogram(self):
+ with TestDriver() as t:
+ t.AddChromeArgs(['--enable-spdy-proxy-auth'])
RyanSturm 2016/12/07 20:20:44 nit: s/AddChromeArgs(['--enable-spdy-proxy-auth'])
Robert Ogden 2016/12/07 21:11:53 Done.
+ t.SetURL('http://check.googlezip.net/test.html')
+ t.LoadPage()
+ t.LoadPage()
+ print t.GetHistogram('DataReductionProxy.Pingback.Attempted')
+
if __name__ == '__main__':
test = SimpleSmoke()
test.RunAllTests()
« no previous file with comments | « tools/chrome_proxy/webdriver/common.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698