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

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

Issue 2759273002: Adding two smoke tests for DataSaver: (Closed)
Patch Set: Address code review comment 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 49f0130659f4537a9c4631b4243fea679cb79b06..3f9dcd0acd3565735fe9a743fc71ae63211cbf13 100644
--- a/tools/chrome_proxy/webdriver/smoke.py
+++ b/tools/chrome_proxy/webdriver/smoke.py
@@ -93,5 +93,27 @@ class Smoke(IntegrationTest):
self.assertHasChromeProxyViaHeader(response)
self.assertEqual(200, response.status)
+ # Ensure the block is working
RyanSturm 2017/03/21 17:41:53 nit: change the comment to "Ensure that block caus
+ def testCheckBlockIsWorking(self):
+ with TestDriver() as t:
+ t.AddChromeArg('--enable-spdy-proxy-auth')
+ t.LoadURL('http://check.googlezip.net/block')
+ responses = t.GetHTTPResponses()
+ self.assertNotEqual(0, len(responses))
+ for response in responses:
+ self.assertNotHasChromeProxyViaHeader(response)
+
+ # Ensure image/css/javascript is compressed
RyanSturm 2017/03/21 17:41:53 nit: Change the comment to "Ensure image, css, and
+ def testCheckImageCssJavascriptIsCompressed(self):
+ with TestDriver() as t:
+ t.AddChromeArg('--enable-spdy-proxy-auth')
+ t.LoadURL('http://check.googlezip.net/static')
+ # http://check.googlezip.net/static is a test page that has
+ # image/css/javascript resources.
+ responses = t.GetHTTPResponses()
+ self.assertNotEqual(0, len(responses))
+ for response in responses:
+ self.assertHasChromeProxyViaHeader(response)
+
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