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

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

Issue 2732133002: Adds proxy pingback chromedriver integration test (testPingback). (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/chrome_proxy/webdriver/smoke.py
diff --git a/tools/chrome_proxy/webdriver/smoke.py b/tools/chrome_proxy/webdriver/smoke.py
index b54dd7fc22424559aff65f2649f7890f10a07180..7143616bab27c60a479d1557e474e4a78226c909 100644
--- a/tools/chrome_proxy/webdriver/smoke.py
+++ b/tools/chrome_proxy/webdriver/smoke.py
@@ -31,5 +31,19 @@ class Smoke(IntegrationTest):
for response in responses:
self.assertHasChromeProxyViaHeader(response)
+ # Ensure pageload metric pingback with DataSaver.
+ def testPingback(self):
+ with TestDriver() as t:
+ t.AddChromeArg('--enable-spdy-proxy-auth')
+ t.AddChromeArg('--enable-data-reduction-proxy-force-pingback')
+ t.AddChromeArg('--enable-stats-collection-bindings')
Robert Ogden 2017/03/06 23:15:16 This one is added for you in common.py:173, no nee
dougarnett 2017/03/06 23:20:55 THanks - done
+ t.LoadURL('http://check.googlezip.net/test.html')
+ t.LoadURL('http://check.googlezip.net/test.html')
+ # Verify one pingback attempt that was successful.
+ attempted = t.GetHistogram('DataReductionProxy.Pingback.Attempted')
+ self.assertEqual(1, attempted['count'])
+ succeeded = t.GetHistogram('DataReductionProxy.Pingback.Succeeded')
+ self.assertEqual(1, succeeded['count'])
+
if __name__ == '__main__':
IntegrationTest.RunAllTests()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698